summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-11-27 14:01:26 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-27 14:01:26 +0000
commit622a75d5ab197c2c08bcc088f9cfabc47e278829 (patch)
tree5d991a626435c9d505337d0a2edc14ebebdef7e2 /fastboot
parentd97d6d524a59a02c98259fbe19570dab3d32f80d (diff)
parentfafbd329cb1685dc91172230a0671175e80ca8b3 (diff)
downloadsystem_core-622a75d5ab197c2c08bcc088f9cfabc47e278829.zip
system_core-622a75d5ab197c2c08bcc088f9cfabc47e278829.tar.gz
system_core-622a75d5ab197c2c08bcc088f9cfabc47e278829.tar.bz2
am fafbd329: am ba1552bd: Merge "Clarify the strcmp() with the empty string."
* commit 'fafbd329cb1685dc91172230a0671175e80ca8b3': Clarify the strcmp() with the empty string.
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/fastboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c
index 2fbb7a6..2dc8ced 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -244,7 +244,7 @@ int list_devices_callback(usb_ifc_info *info)
// output compatible with "adb devices"
if (!long_listing) {
printf("%s\tfastboot\n", serial);
- } else if (!strcmp("", info->device_path)) {
+ } else if (strcmp("", info->device_path) == 0) {
printf("%-22s fastboot\n", serial);
} else {
printf("%-22s fastboot %s\n", serial, info->device_path);