summaryrefslogtreecommitdiff
path: root/src/options/options_template.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-08-08 22:20:39 +0000
committerMorgan Deters <mdeters@gmail.com>2012-08-08 22:20:39 +0000
commit2a8c2250a4cf3cd2c5d806678c31a1c98f72323d (patch)
tree7a2e769d16d7a503fc92715d230c6df9ad59f640 /src/options/options_template.cpp
parent02fb5a3a3219158e8c1b31a737c0a17182e8d91e (diff)
Fix --no-checking option.
Diffstat (limited to 'src/options/options_template.cpp')
-rw-r--r--src/options/options_template.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options/options_template.cpp b/src/options/options_template.cpp
index 9b9b711ad..a3fc91c95 100644
--- a/src/options/options_template.cpp
+++ b/src/options/options_template.cpp
@@ -383,7 +383,7 @@ int Options::parseOptions(int argc, char* main_argv[]) throw(OptionException) {
Debug("preemptGetopt") << "in preempt code, c == " << c << " (`" << char(c) << "') optind == " << optind << std::endl;
if(optind >= extra_argc) {
Debug("preemptGetopt") << "-- no more preempt args" << std::endl;
- unsigned i = 0;
+ unsigned i = 1;
while(extra_argv[i] != NULL && extra_argv[i][0] != '\0') {
extra_argv[i][0] = '\0';
++i;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback