diff options
author | Stephen Hines <srhines@google.com> | 2014-11-27 13:54:31 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-27 13:54:31 +0000 |
commit | fafbd329cb1685dc91172230a0671175e80ca8b3 (patch) | |
tree | 1c878dea3e7a01f2acfa363c27942b12dcd1774a /fastboot | |
parent | 8d49c8b0bfdc7bed855acec603bacc355b5bcb8c (diff) | |
parent | ba1552bd2438a8a47779ed3d05d5ce15bfb5741c (diff) | |
download | system_core-fafbd329cb1685dc91172230a0671175e80ca8b3.zip system_core-fafbd329cb1685dc91172230a0671175e80ca8b3.tar.gz system_core-fafbd329cb1685dc91172230a0671175e80ca8b3.tar.bz2 |
am ba1552bd: Merge "Clarify the strcmp() with the empty string."
* commit 'ba1552bd2438a8a47779ed3d05d5ce15bfb5741c':
Clarify the strcmp() with the empty string.
Diffstat (limited to 'fastboot')
-rw-r--r-- | fastboot/fastboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index 92a61f8..959d3ad 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); |