summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-04-24 23:15:14 +0200
committerTao Bao <tbao@google.com>2018-04-25 16:16:00 +0200
commit188f3a5bf8ff0f28e12a5977b7b21200f088aca7 (patch)
treec0dfc6ca0dea496658eedfddb4030359a2ac49d1 /updater
parentMerge "Dump debug information for apply_patch unit tests" (diff)
downloadandroid_bootable_recovery-188f3a5bf8ff0f28e12a5977b7b21200f088aca7.tar
android_bootable_recovery-188f3a5bf8ff0f28e12a5977b7b21200f088aca7.tar.gz
android_bootable_recovery-188f3a5bf8ff0f28e12a5977b7b21200f088aca7.tar.bz2
android_bootable_recovery-188f3a5bf8ff0f28e12a5977b7b21200f088aca7.tar.lz
android_bootable_recovery-188f3a5bf8ff0f28e12a5977b7b21200f088aca7.tar.xz
android_bootable_recovery-188f3a5bf8ff0f28e12a5977b7b21200f088aca7.tar.zst
android_bootable_recovery-188f3a5bf8ff0f28e12a5977b7b21200f088aca7.zip
Diffstat (limited to '')
-rw-r--r--updater/blockimg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index e72ddd313..e7d213a71 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1697,7 +1697,7 @@ static Value* PerformBlockImageUpdate(const char* name, State* state,
for (size_t i = 0; i < cmdcount; ++i) {
if (cmd_map.find(commands[i].name) != cmd_map.end()) {
LOG(ERROR) << "Error: command [" << commands[i].name << "] already exists in the cmd map.";
- return StringValue(strdup(""));
+ return StringValue("");
}
cmd_map[commands[i].name] = &commands[i];
}