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

This commit is contained in:
android-build-prod (mdb) 2018-04-25 17:57:12 +00:00 committed by Gerrit Code Review
commit ab3c24bd51

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