Merge "updater: Remove an unneeded strdup()."

am: ab3c24bd51

Change-Id: I9a5b88f8091a208bc62678711f4ca0564d49538d
This commit is contained in:
android-build-prod (mdb) 2018-04-25 11:06:01 -07:00 committed by android-build-merger
commit 76f0edc05e

View file

@ -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];
}