am ba1552bd: Merge "Clarify the strcmp() with the empty string."

* commit 'ba1552bd2438a8a47779ed3d05d5ce15bfb5741c':
  Clarify the strcmp() with the empty string.
This commit is contained in:
Stephen Hines 2014-11-27 13:54:31 +00:00 committed by Android Git Automerger
commit fafbd329cb

View file

@ -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);