about summary refs log tree commit diff
path: root/analyzer
diff options
context:
space:
mode:
Diffstat (limited to 'analyzer')
-rw-r--r--analyzer/pamfile.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/analyzer/pamfile.c b/analyzer/pamfile.c
index c2507f66..9c5b2c33 100644
--- a/analyzer/pamfile.c
+++ b/analyzer/pamfile.c
@@ -171,7 +171,11 @@ doOneImage(const char * const name,
         
         pnm_freepamrow(tuplerow);
         
-        pnm_nextimage(fileP, eofP);
+        {
+            int eof;
+            pnm_nextimage(fileP, &eof);
+            *eofP = eof;
+        }
     }
 }