Merge "recovery: Reset optind to 1 after getopt"
am: 38d90316b2
Change-Id: I06fecd4bc886741901715201b14ff31b6932d05d
This commit is contained in:
commit
25d31c9f9c
2 changed files with 2 additions and 0 deletions
|
@ -1049,6 +1049,7 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
|
|||
continue;
|
||||
}
|
||||
}
|
||||
optind = 1;
|
||||
|
||||
printf("stage is [%s]\n", stage.c_str());
|
||||
printf("reason is [%s]\n", reason);
|
||||
|
|
|
@ -317,6 +317,7 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
}
|
||||
optind = 1;
|
||||
|
||||
if (locale.empty()) {
|
||||
if (has_cache) {
|
||||
|
|
Loading…
Reference in a new issue