From 08811e76fd6b1917cdc54343831685740710bde4 Mon Sep 17 00:00:00 2001 From: Araki Ken Date: Sat, 1 Mar 2014 16:36:57 +0900 Subject: Minor fixes of parseImageHeader(). --- image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'image.c') 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; -- cgit v1.2.3