Merge "recovery: Reset optind to 1 after getopt" am: 38d90316b2
am: 25d31c9f9c
Change-Id: Id2d80584075c3482748e5946d39fe8ef572aea45
This commit is contained in:
@@ -1069,6 +1069,7 @@ Device::BuiltinAction start_recovery(Device* device, const std::vector<std::stri
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
optind = 1;
|
||||||
|
|
||||||
printf("stage is [%s]\n", stage.c_str());
|
printf("stage is [%s]\n", stage.c_str());
|
||||||
printf("reason is [%s]\n", reason);
|
printf("reason is [%s]\n", reason);
|
||||||
|
|||||||
@@ -317,6 +317,7 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
optind = 1;
|
||||||
|
|
||||||
if (locale.empty()) {
|
if (locale.empty()) {
|
||||||
if (has_cache) {
|
if (has_cache) {
|
||||||
|
|||||||
Reference in New Issue
Block a user