summaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-11-26 14:54:43 -0800
committerStephen Hines <srhines@google.com>2014-11-26 14:54:43 -0800
commit04f895314dc57ff6cfa209d8985eb6c28ce0fe0d (patch)
tree503202627fdb9fa8bc2c35dcc34c0f2f10bc1a27 /fastboot
parentf66486ef09bfc53da65ca6b4137c47d583f31356 (diff)
downloadsystem_core-04f895314dc57ff6cfa209d8985eb6c28ce0fe0d.zip
system_core-04f895314dc57ff6cfa209d8985eb6c28ce0fe0d.tar.gz
system_core-04f895314dc57ff6cfa209d8985eb6c28ce0fe0d.tar.bz2
Clarify the strcmp() with the empty string.
Change-Id: Ie246b3c2de3f19b95693f634b0ebd46bdcf3962b
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 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);