Merge "recovery: Reset optind to 1 after getopt" am: 38d90316b2 am: 25d31c9f9c

am: 901fb2c811

Change-Id: I8848adc74153293256f780fefaa05c579eda359d
This commit is contained in:
Jerry Zhang
2018-05-17 14:52:48 -07:00
committed by android-build-merger
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1069,6 +1069,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);
+1
View File
@@ -317,6 +317,7 @@ int main(int argc, char** argv) {
}
}
}
optind = 1;
if (locale.empty()) {
if (has_cache) {