Fix crash when providing bad command line argument
authorClinton Ebadi <clinton@unknownlamer.org>
Sat, 9 May 2020 18:56:36 +0000 (14:56 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sat, 9 May 2020 18:56:36 +0000 (14:56 -0400)
15 years later... actually terminate the getopt options array.

source/Main.C

index cc37844..0930c61 100644 (file)
@@ -59,7 +59,8 @@ namespace
 #ifdef USESCRIPTS
       { "debug-scripts", no_argument, 0, 'S' },
 #endif
-      { "debug", no_argument, 0, 'D' }
+      { "debug", no_argument, 0, 'D' },
+      { 0, 0, 0, 0 }
     };
 
   void sig_hup(int) {