Merge "Clarify the strcmp() with the empty string."
This commit is contained in:
commit
ba1552bd24
1 changed files with 1 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ int list_devices_callback(usb_ifc_info *info)
|
||||||
// output compatible with "adb devices"
|
// output compatible with "adb devices"
|
||||||
if (!long_listing) {
|
if (!long_listing) {
|
||||||
printf("%s\tfastboot\n", serial);
|
printf("%s\tfastboot\n", serial);
|
||||||
} else if (!strcmp("", info->device_path)) {
|
} else if (strcmp("", info->device_path) == 0) {
|
||||||
printf("%-22s fastboot\n", serial);
|
printf("%-22s fastboot\n", serial);
|
||||||
} else {
|
} else {
|
||||||
printf("%-22s fastboot %s\n", serial, info->device_path);
|
printf("%-22s fastboot %s\n", serial, info->device_path);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue