HCoop
/
clinton
/
bobotpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89c7e85
)
Fix crash when providing bad command line argument
author
Clinton Ebadi
<clinton@unknownlamer.org>
Sat, 9 May 2020 18:56:36 +0000
(14:56 -0400)
committer
Clinton 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
patch
|
blob
|
blame
|
history
diff --git
a/source/Main.C
b/source/Main.C
index
cc37844
..
0930c61
100644
(file)
--- a/
source/Main.C
+++ b/
source/Main.C
@@
-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) {