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

am: 76f0edc05e

Change-Id: I0836af0b9ba9485c1908303b496fb86899aa4f43
This commit is contained in:
android-build-prod (mdb) 2018-04-25 11:09:02 -07:00 committed by android-build-merger
commit beeef60446

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