summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2018-04-25 19:57:12 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-04-25 19:57:12 +0200
commitab3c24bd5198c243b4cdb3880a93aa075d8b89dd (patch)
treeffa3a4da2a3c69e92bcfbbeaf05de2886afa50ed
parentMerge "Wipe the metadata partition when we wipe data." (diff)
parentupdater: Remove an unneeded strdup(). (diff)
downloadandroid_bootable_recovery-ab3c24bd5198c243b4cdb3880a93aa075d8b89dd.tar
android_bootable_recovery-ab3c24bd5198c243b4cdb3880a93aa075d8b89dd.tar.gz
android_bootable_recovery-ab3c24bd5198c243b4cdb3880a93aa075d8b89dd.tar.bz2
android_bootable_recovery-ab3c24bd5198c243b4cdb3880a93aa075d8b89dd.tar.lz
android_bootable_recovery-ab3c24bd5198c243b4cdb3880a93aa075d8b89dd.tar.xz
android_bootable_recovery-ab3c24bd5198c243b4cdb3880a93aa075d8b89dd.tar.zst
android_bootable_recovery-ab3c24bd5198c243b4cdb3880a93aa075d8b89dd.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];
}