diff options
author | Chih-Hung Hsieh <chh@google.com> | 2014-12-11 12:38:46 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2014-12-11 12:38:46 -0800 |
commit | 59970e70412ba37a8e8f19805daf641983558beb (patch) | |
tree | 1a38f5c349bb780fda9b0995a52f6d328dd5b075 /fastbootd | |
parent | 3570072c362fc379ac83bcae6d9ff43db06ffcfb (diff) | |
download | system_core-59970e70412ba37a8e8f19805daf641983558beb.zip system_core-59970e70412ba37a8e8f19805daf641983558beb.tar.gz system_core-59970e70412ba37a8e8f19805daf641983558beb.tar.bz2 |
Fix clang compiler warning.
commands.c:176:9: error: comparison of array 'path' equal to a null pointer is always false
[-Werror,-Wtautological-pointer-compare]
Change-Id: If6253e948ce219c76e9303e5ae39024094294182
Diffstat (limited to 'fastbootd')
-rw-r--r-- | fastbootd/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastbootd/commands.c b/fastbootd/commands.c index 98b7866..9be96dc 100644 --- a/fastbootd/commands.c +++ b/fastbootd/commands.c @@ -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; } |