summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-06-20 19:14:40 +0200
committerTao Bao <tbao@google.com>2018-06-20 22:21:16 +0200
commit8dc704930be62377549ec47b8929d0237ed25f79 (patch)
tree7ef5cec46dac4f4d3b64b12b13051b81438db0cc /updater
parentapplypatch: Move to libbase logging. (diff)
downloadandroid_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.gz
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.bz2
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.lz
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.xz
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.tar.zst
android_bootable_recovery-8dc704930be62377549ec47b8929d0237ed25f79.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 bd22467ab..9b1e2b805 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) {