diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-18 11:47:50 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-18 12:16:24 +0100 |
commit | f657716f5207807f79ceee8fff089327be7ba540 (patch) | |
tree | ec68bbb65063818317f7b3047d3c0f7f12681ee6 /searchlib | |
parent | e52b3ab39a5ae05fc1b1d538b6efa852f321a2f2 (diff) |
Stop setting optind before calling getopt() or getopt_long().
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp b/searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp index 6522d814529..83b55c7c698 100644 --- a/searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp +++ b/searchlib/src/apps/vespa-index-inspect/vespa-index-inspect.cpp @@ -281,6 +281,7 @@ ShowPostingListSubApp::getOptions() LONGOPT_MINDOCID }; int optIndex = 2; + _app.resetOptIndex(optIndex); while ((c = _app.GetOptLong("di:mv", optArgument, optIndex, @@ -743,6 +744,7 @@ DumpWordsSubApp::getOptions() LONGOPT_WORDNUM }; int optIndex = 2; + _app.resetOptIndex(optIndex); while ((c = _app.GetOptLong("i:", optArgument, optIndex, |