summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-06-25 16:44:17 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-06-25 16:44:17 +0200
commit839c40513aae03025de0868218e02a130c27dcb7 (patch)
tree2c70230fd22650dfe09e96e01cb25f9cec081df2 /updater
parentMerge "applypatch: Move to libbase logging." (diff)
parentMerge "applypatch: {Load,Save}FileContents and ParseSha1 take std::string." (diff)
downloadandroid_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.gz
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.bz2
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.lz
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.xz
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.tar.zst
android_bootable_recovery-839c40513aae03025de0868218e02a130c27dcb7.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index 00a05b8c9..6f83440da 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -319,7 +319,7 @@ Value* Sha1CheckFn(const char* name, State* state, const std::vector<std::unique
uint8_t arg_digest[SHA_DIGEST_LENGTH];
if (args[i]->type != VAL_STRING) {
LOG(ERROR) << name << "(): arg " << i << " is not a string; skipping";
- } else if (ParseSha1(args[i]->data.c_str(), arg_digest) != 0) {
+ } else if (ParseSha1(args[i]->data, arg_digest) != 0) {
// Warn about bad args and skip them.
LOG(ERROR) << name << "(): error parsing \"" << args[i]->data << "\" as sha-1; skipping";
} else if (memcmp(digest, arg_digest, SHA_DIGEST_LENGTH) == 0) {