Fix return value on adb commands error
This commit is contained in:
parent
50f4f1639c
commit
8e4d3beb01
1 changed files with 2 additions and 2 deletions
|
@ -425,7 +425,7 @@ adb_get_serialno(struct sc_intr *intr, unsigned flags) {
|
|||
}
|
||||
|
||||
if (r == -1) {
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sc_str_truncate(buf, r, " \r\n");
|
||||
|
@ -455,7 +455,7 @@ adb_get_device_ip(struct sc_intr *intr, const char *serial, unsigned flags) {
|
|||
}
|
||||
|
||||
if (r == -1) {
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
assert((size_t) r <= sizeof(buf));
|
||||
|
|
Loading…
Reference in a new issue