Fix return value on adb commands error

This commit is contained in:
Romain Vimont 2022-01-27 12:26:43 +01:00
parent 50f4f1639c
commit 8e4d3beb01

View file

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