summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-06-25 16:35:03 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-06-25 16:35:03 +0200
commitb4181566f9a346461cc445f87c2eb9cab7c49b56 (patch)
tree3955cd12493441e65a951c78c841c50c2a6dd3b9 /updater
parentMerge "applypatch: Move to libbase logging." (diff)
parentapplypatch: {Load,Save}FileContents and ParseSha1 take std::string. (diff)
downloadandroid_bootable_recovery-b4181566f9a346461cc445f87c2eb9cab7c49b56.tar
android_bootable_recovery-b4181566f9a346461cc445f87c2eb9cab7c49b56.tar.gz
android_bootable_recovery-b4181566f9a346461cc445f87c2eb9cab7c49b56.tar.bz2
android_bootable_recovery-b4181566f9a346461cc445f87c2eb9cab7c49b56.tar.lz
android_bootable_recovery-b4181566f9a346461cc445f87c2eb9cab7c49b56.tar.xz
android_bootable_recovery-b4181566f9a346461cc445f87c2eb9cab7c49b56.tar.zst
android_bootable_recovery-b4181566f9a346461cc445f87c2eb9cab7c49b56.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 5dbe4a984..1ac19ce00 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) {