commit | ab3c24bd5198c243b4cdb3880a93aa075d8b89dd | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Wed Apr 25 17:57:12 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Apr 25 17:57:12 2018 +0000 |
tree | ffa3a4da2a3c69e92bcfbbeaf05de2886afa50ed | |
parent | 897385bfe29a362c0ae541c9e09d58fe3563a77d [diff] | |
parent | 188f3a5bf8ff0f28e12a5977b7b21200f088aca7 [diff] |
Merge "updater: Remove an unneeded strdup()."
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp index e72ddd3..e7d213a 100644 --- a/updater/blockimg.cpp +++ b/updater/blockimg.cpp
@@ -1697,7 +1697,7 @@ 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]; }