about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-31 02:47:38 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-31 02:47:38 +0000
commit30924ef0461921482806b7e0b138d9ed176db1de (patch)
tree5825f1c220db061690e76b7b12bbbba43978b920
parentbf0d2cdb3fe68e7c82907aa9a51057f56dc08f2e (diff)
downloadnetpbm-mirror-30924ef0461921482806b7e0b138d9ed176db1de.tar.gz
netpbm-mirror-30924ef0461921482806b7e0b138d9ed176db1de.tar.xz
netpbm-mirror-30924ef0461921482806b7e0b138d9ed176db1de.zip
Fix unterminated option array
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2405 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/pgm/sbigtopgm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/converter/pgm/sbigtopgm.c b/converter/pgm/sbigtopgm.c
index 0a6ba268..2e8b4586 100644
--- a/converter/pgm/sbigtopgm.c
+++ b/converter/pgm/sbigtopgm.c
@@ -55,6 +55,7 @@ parseCommandLine(int argc, const char ** argv,
     MALLOCARRAY_NOFAIL(option_def, 100);
     
     option_def_index = 0;   /* incremented by OPTENT3 */
+    OPTENTINIT;
 
     opt.opt_table     = option_def;
     opt.short_allowed = FALSE; /* We have no short (old-fashioned) options */