Merge "updater: Remove an unneeded strdup()."
am: ab3c24bd51
Change-Id: I9a5b88f8091a208bc62678711f4ca0564d49538d
This commit is contained in:
commit
76f0edc05e
1 changed files with 1 additions and 1 deletions
|
@ -1697,7 +1697,7 @@ static Value* PerformBlockImageUpdate(const char* name, State* state,
|
||||||
for (size_t i = 0; i < cmdcount; ++i) {
|
for (size_t i = 0; i < cmdcount; ++i) {
|
||||||
if (cmd_map.find(commands[i].name) != cmd_map.end()) {
|
if (cmd_map.find(commands[i].name) != cmd_map.end()) {
|
||||||
LOG(ERROR) << "Error: command [" << commands[i].name << "] already exists in the cmd map.";
|
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];
|
cmd_map[commands[i].name] = &commands[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue