From 47137f061b4d39af403586fb6a5d5697b03ddd0f Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sun, 29 Sep 2002 15:14:32 +0000 Subject: [w3m-dev 03325] Re: hang up when seeing web page that contains xbm file * w3mimgdisplay.c (main): alreays return response even if size is unknown From: qhwt@myrealbox.com --- w3mimgdisplay.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'w3mimgdisplay.c') diff --git a/w3mimgdisplay.c b/w3mimgdisplay.c index 2a798b1..402a572 100644 --- a/w3mimgdisplay.c +++ b/w3mimgdisplay.c @@ -1,4 +1,4 @@ -/* $Id: w3mimgdisplay.c,v 1.6 2002/07/22 16:17:32 ukai Exp $ */ +/* $Id: w3mimgdisplay.c,v 1.7 2002/09/29 15:14:32 ukai Exp $ */ #include #include #include @@ -103,7 +103,13 @@ main(int argc, char **argv) if (w_op->get_image_size(w_op, &img, &buf[2], &w, &h)) { fprintf(stdout, "%d %d\n", w, h); fflush(stdout); + } else { + fprintf(stdout, "\n"); + fflush(stdout); } + } else { + fprintf(stdout, "\n"); + fflush(stdout); } break; } -- cgit v1.2.3