From 2a8c2250a4cf3cd2c5d806678c31a1c98f72323d Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Wed, 8 Aug 2012 22:20:39 +0000 Subject: [PATCH] Fix --no-checking option. --- src/options/options_template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2