diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ pgm_read(char *filename, unsigned char **buf, int *xsize, int *ysize) return -1; if (fscanf(f, "P5\n%d %d\n255\n", &width, &height) == 0) - return -1; + goto fail; if (width * height <= 0) goto fail; |