about summary refs log tree commit diff
path: root/other/pamx/image.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-12-03 16:06:15 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-12-03 16:06:15 +0000
commit30d0735d5fb1aad813380bc1d2ebf521070c9e20 (patch)
tree534d1da8857f3e3aaf58d76daa54a3caf3f9e43a /other/pamx/image.c
parente304835519fb5985a426a3e097722d7439685f30 (diff)
downloadnetpbm-mirror-30d0735d5fb1aad813380bc1d2ebf521070c9e20.tar.gz
netpbm-mirror-30d0735d5fb1aad813380bc1d2ebf521070c9e20.tar.xz
netpbm-mirror-30d0735d5fb1aad813380bc1d2ebf521070c9e20.zip
Release 10.36.14
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@162 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other/pamx/image.c')
-rw-r--r--other/pamx/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/other/pamx/image.c b/other/pamx/image.c
index 3aaa8478..892a9768 100644
--- a/other/pamx/image.c
+++ b/other/pamx/image.c
@@ -157,7 +157,7 @@ newRGBImage(unsigned int const width,
             unsigned int const height,
             unsigned int const depth) {
     
-    unsigned int const pixlen = pixlen > 0 ? (depth + 7) / 8 : 1;
+    unsigned int const pixlen = depth > 0 ? (depth + 7) / 8 : 1;
         /* Special case for "zero" depth image, which is sometimes
            interpreted as "one color"
         */