about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/pnmpad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/pnmpad.c b/editor/pnmpad.c
index 168b73e0..051f3895 100644
--- a/editor/pnmpad.c
+++ b/editor/pnmpad.c
@@ -309,7 +309,7 @@ computePadSizeBeforeMult(unsigned int   const unpaddedSize,
             *begPadP = begPadReq;
             *endPadP = MAX(sizeReq, unpaddedSize + begPadReq) -
                 (begPadReq + unpaddedSize);
-        } else if (endPadReq) {
+        } else if (endPadSpec) {
             *endPadP = endPadReq;
             *begPadP = MAX(sizeReq, unpaddedSize + endPadReq) -
                 (unpaddedSize + endPadReq);