am f66486ef: Merge "Fix incorrect path name check."

* commit 'f66486ef09bfc53da65ca6b4137c47d583f31356':
  Fix incorrect path name check.
This commit is contained in:
Stephen Hines 2014-11-27 13:54:24 +00:00 committed by Android Git Automerger
commit 8d49c8b0bf

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 (!info->device_path) {
} else if (!strcmp("", info->device_path)) {
printf("%-22s fastboot\n", serial);
} else {
printf("%-22s fastboot %s\n", serial, info->device_path);