summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2018-04-25 20:09:02 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-04-25 20:09:02 +0200
commitbeeef604462802645e5ae94568c21d61b59e1d77 (patch)
tree3aaa105af0e83ef8dd8f50caaaddda7e7edc6397
parentMerge "Wipe the metadata partition when we wipe data." am: 897385bfe2 (diff)
parentMerge "updater: Remove an unneeded strdup()." (diff)
downloadandroid_bootable_recovery-beeef604462802645e5ae94568c21d61b59e1d77.tar
android_bootable_recovery-beeef604462802645e5ae94568c21d61b59e1d77.tar.gz
android_bootable_recovery-beeef604462802645e5ae94568c21d61b59e1d77.tar.bz2
android_bootable_recovery-beeef604462802645e5ae94568c21d61b59e1d77.tar.lz
android_bootable_recovery-beeef604462802645e5ae94568c21d61b59e1d77.tar.xz
android_bootable_recovery-beeef604462802645e5ae94568c21d61b59e1d77.tar.zst
android_bootable_recovery-beeef604462802645e5ae94568c21d61b59e1d77.zip
-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];
}