From: helly Date: Wed, 11 Aug 2004 21:16:07 +0000 (+0000) Subject: Fix [999103] Invalid options prefixed with two dashes cause program crash X-Git-Tag: 0.13.6~688 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83906420ea84d8c7e291c5fe97204b279b2c2771;p=re2c Fix [999103] Invalid options prefixed with two dashes cause program crash --- diff --git a/main.cc b/main.cc index 2e35d67b..310a0cac 100644 --- a/main.cc +++ b/main.cc @@ -35,6 +35,7 @@ static const mbo_opt_struct OPTIONS[] = {'s', 0, "nested-ifs"}, {'o', 1, "output"}, {'v', 0, "version"} + {'-', 0, NULL} /* end of args */ }; static void usage()