about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libpamn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpamn.c b/lib/libpamn.c
index 2ec50e7e..fe004e91 100644
--- a/lib/libpamn.c
+++ b/lib/libpamn.c
@@ -286,6 +286,7 @@ pnm_allocpamarrayn(const struct pam * const pamP) {
         unsigned int rowsDone;
 
         rowsDone = 0;
+        error = NULL;
 
         while (rowsDone < pamP->height && !error) {
             allocpamrown(pamP, &tuplenarray[rowsDone], &error);