aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
authorAraki Ken <arakiken@users.sf.net>2014-03-01 07:36:57 +0000
committerTatsuya Kinoshita <tats@debian.org>2014-12-06 11:47:04 +0000
commit08811e76fd6b1917cdc54343831685740710bde4 (patch)
treef922538ac028f2e34ed239b63e715c39de6fbac0 /image.c
parentDetermine the format of an image file by its header data not by its file name... (diff)
downloadw3m-08811e76fd6b1917cdc54343831685740710bde4.tar.gz
w3m-08811e76fd6b1917cdc54343831685740710bde4.zip
Minor fixes of parseImageHeader().
Diffstat (limited to 'image.c')
-rw-r--r--image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/image.c b/image.c
index fdc9b27..75fa31f 100644
--- a/image.c
+++ b/image.c
@@ -670,6 +670,7 @@ parseImageHeader(char *path, u_int *width, u_int *height)
goto success;
}
}
+ goto error;
}
if (fread(buf + 3, 1, 5, fp) != 5) goto error;
@@ -684,10 +685,10 @@ parseImageHeader(char *path, u_int *width, u_int *height)
goto success;
}
}
+ goto error;
}
error:
- fprintf(stderr,"%s\n",path);
fclose(fp);
return FALSE;