diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-12 03:19:15 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-12 03:19:15 +0000 |
commit | fdf96d2fadfeb50b596aea7fe4c6bbe4bdac33ea (patch) | |
tree | 317dd2e2554683aee3b4a1cc4c44b754264c6cfa /converter | |
parent | 6b39f70d4251512a5d3d91363adc3d019cc78123 (diff) | |
download | netpbm-mirror-fdf96d2fadfeb50b596aea7fe4c6bbe4bdac33ea.tar.gz netpbm-mirror-fdf96d2fadfeb50b596aea7fe4c6bbe4bdac33ea.tar.xz netpbm-mirror-fdf96d2fadfeb50b596aea7fe4c6bbe4bdac33ea.zip |
Fix uninitialized variable with -map
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4241 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/ppm/ppmtoilbm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/converter/ppm/ppmtoilbm.c b/converter/ppm/ppmtoilbm.c index 595aa3f4..c5fa4d00 100644 --- a/converter/ppm/ppmtoilbm.c +++ b/converter/ppm/ppmtoilbm.c @@ -2274,6 +2274,7 @@ main(int argc, char ** argv) { if (colors == 0) pm_error("empty colormap??"); pm_message("%d colors found in colormap", colors); + nPlanes = pm_maxvaltobits(colors-1); } if (maskmethod != mskNone) { |