about summary refs log tree commit diff
path: root/editor/pnmpad.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-12-01 01:07:53 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-12-01 01:07:53 +0000
commit036f0cf61db2a3521d724d0bc671e719c3be9a38 (patch)
treefc0efa8dfe57b76fc8addf17848f0976186a96df /editor/pnmpad.c
parent74972256fffd43d1f1e16f0d4bc373e93aaed444 (diff)
downloadnetpbm-mirror-036f0cf61db2a3521d724d0bc671e719c3be9a38.tar.gz
netpbm-mirror-036f0cf61db2a3521d724d0bc671e719c3be9a38.tar.xz
netpbm-mirror-036f0cf61db2a3521d724d0bc671e719c3be9a38.zip
Release 10.76.01
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2846 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pnmpad.c')
-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);