am 8386e134: Merge "Fix clang compiler warning."

* commit '8386e134be39e94f2856ed317d86172ea51edd3c':
  Fix clang compiler warning.
This commit is contained in:
Chih-Hung Hsieh 2014-12-11 22:40:18 +00:00 committed by Android Git Automerger
commit 9449bd618d
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ static void cmd_erase(struct protocol_handle *phandle, const char *arg)
return;
}
if (path == NULL) {
if (!path[0]) {
fastboot_fail(phandle, "Couldn't find partition");
return;
}