commit | 38d90316b23db3a0fc006d6f0e502b742c4152c1 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu May 17 21:38:26 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu May 17 21:38:26 2018 +0000 |
tree | 14fadf8929d56faab3e82f6c82f2702d3557ffc2 | |
parent | 2ddc54f5fd1f3ae07c2c363c37561133eb161258 [diff] | |
parent | 49fd5d262c6764b0a6746cfdb267e8bebec49256 [diff] |
Merge "recovery: Reset optind to 1 after getopt"
diff --git a/recovery.cpp b/recovery.cpp index b1a2900..21f6330 100644 --- a/recovery.cpp +++ b/recovery.cpp
@@ -1049,6 +1049,7 @@ continue; } } + optind = 1; printf("stage is [%s]\n", stage.c_str()); printf("reason is [%s]\n", reason);
diff --git a/recovery_main.cpp b/recovery_main.cpp index e21c782..5e82c6c 100644 --- a/recovery_main.cpp +++ b/recovery_main.cpp
@@ -317,6 +317,7 @@ } } } + optind = 1; if (locale.empty()) { if (has_cache) {