summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-23 14:34:20 +0100
committergitbuildkicker <android-build@google.com>2017-03-24 00:33:06 +0100
commit91bc6ddb4ee4c71276856e7825875a2a906fbd23 (patch)
tree5533f49f015f3ebf79ae11089f126aedda1e9542 /updater/install.cpp
parentmerge in oc-release history after reset to master (diff)
downloadandroid_bootable_recovery-91bc6ddb4ee4c71276856e7825875a2a906fbd23.tar
android_bootable_recovery-91bc6ddb4ee4c71276856e7825875a2a906fbd23.tar.gz
android_bootable_recovery-91bc6ddb4ee4c71276856e7825875a2a906fbd23.tar.bz2
android_bootable_recovery-91bc6ddb4ee4c71276856e7825875a2a906fbd23.tar.lz
android_bootable_recovery-91bc6ddb4ee4c71276856e7825875a2a906fbd23.tar.xz
android_bootable_recovery-91bc6ddb4ee4c71276856e7825875a2a906fbd23.tar.zst
android_bootable_recovery-91bc6ddb4ee4c71276856e7825875a2a906fbd23.zip
Diffstat (limited to '')
-rw-r--r--updater/install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index c9a0270ec..f91f3fc9f 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -691,7 +691,7 @@ Value* ApplyPatchCheckFn(const char* name, State* state, const std::vector<std::
const std::string& filename = args[0];
std::vector<std::string> sha1s;
- if (!ReadArgs(state, argv, &sha1s, 1, argv.size() - 1)) {
+ if (argv.size() > 1 && !ReadArgs(state, argv, &sha1s, 1, argv.size() - 1)) {
return ErrorAbort(state, kArgsParsingFailure, "%s() Failed to parse the argument(s)", name);
}
int result = applypatch_check(filename.c_str(), sha1s);