summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-05-17 23:38:26 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-17 23:38:26 +0200
commit38d90316b23db3a0fc006d6f0e502b742c4152c1 (patch)
tree14fadf8929d56faab3e82f6c82f2702d3557ffc2 /recovery.cpp
parentMerge "updater_sample: add switch slot demo" (diff)
parentrecovery: Reset optind to 1 after getopt (diff)
downloadandroid_bootable_recovery-38d90316b23db3a0fc006d6f0e502b742c4152c1.tar
android_bootable_recovery-38d90316b23db3a0fc006d6f0e502b742c4152c1.tar.gz
android_bootable_recovery-38d90316b23db3a0fc006d6f0e502b742c4152c1.tar.bz2
android_bootable_recovery-38d90316b23db3a0fc006d6f0e502b742c4152c1.tar.lz
android_bootable_recovery-38d90316b23db3a0fc006d6f0e502b742c4152c1.tar.xz
android_bootable_recovery-38d90316b23db3a0fc006d6f0e502b742c4152c1.tar.zst
android_bootable_recovery-38d90316b23db3a0fc006d6f0e502b742c4152c1.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index b1a2900fd..21f633011 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -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);