summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-07-06 19:32:50 +0000
committerMorgan Deters <mdeters@gmail.com>2010-07-06 19:32:50 +0000
commit1369cc6954b49ea3a477d46e726dd1afd1f14a73 (patch)
tree7c71c122c12560d47c7f6af280080489fa74147c /src
parentd20b7a53b726ef1aa8b600dba27496ec3ee81050 (diff)
fix crash on command line parsing
Diffstat (limited to 'src')
-rw-r--r--src/main/getopt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/getopt.cpp b/src/main/getopt.cpp
index e050a0dfb..2b36a06d2 100644
--- a/src/main/getopt.cpp
+++ b/src/main/getopt.cpp
@@ -111,10 +111,11 @@ static struct option cmdlineOptions[] = {
{ "about" , no_argument , NULL, 'V' },
{ "lang" , required_argument, NULL, 'L' },
{ "parse-only" , no_argument , NULL, PARSE_ONLY },
- { "mmap", no_argument , NULL, USE_MMAP },
+ { "mmap" , no_argument , NULL, USE_MMAP },
{ "strict-parsing", no_argument , NULL, STRICT_PARSING },
{ "default-expr-depth", required_argument, NULL, DEFAULT_EXPR_DEPTH },
{ "print-expr-types", no_argument , NULL, PRINT_EXPR_TYPES },
+ { NULL , no_argument , NULL, '\0' }
};/* if you add things to the above, please remember to update usage.h! */
/** Full argv[0] */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback