diff options
author | Araki Ken <arakiken@users.sf.net> | 2014-03-01 07:36:57 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2014-12-06 11:47:04 +0000 |
commit | 08811e76fd6b1917cdc54343831685740710bde4 (patch) | |
tree | f922538ac028f2e34ed239b63e715c39de6fbac0 | |
parent | Determine the format of an image file by its header data not by its file name... (diff) | |
download | w3m-08811e76fd6b1917cdc54343831685740710bde4.tar.gz w3m-08811e76fd6b1917cdc54343831685740710bde4.zip |
Minor fixes of parseImageHeader().
-rw-r--r-- | image.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |