From a9428d4d4c6e3997bd18f1b01fe18e031e1b4c8b Mon Sep 17 00:00:00 2001
From: David Phillips <dbphillipsnz@gmail.com>
Date: Thu, 5 May 2016 21:27:13 +1200
Subject: Reinstate return statement in error condition

This commented out during some debugging, should never have been committed
without uncommenting.
---
 pgm-interlace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pgm-interlace.c b/pgm-interlace.c
index 33ba89d..18c06c6 100644
--- a/pgm-interlace.c
+++ b/pgm-interlace.c
@@ -225,7 +225,7 @@ int write_pgm(FILE *fout, unsigned long size, unsigned int white, FILE **fin, si
 			if (c == EOF)
 			{
 				fprintf(stderr, "Unexpected EOF on file %lu at pixel (%lu,%lu); pgm input truncated? Stop.\n", fnum, x, y);
-/*				return 1;*/
+				return 1;
 			}
 			fputc(c, fout);
 		}
-- 
cgit v1.1