diff --git a/fastbootd/commands.c b/fastbootd/commands.c index 98b7866a9..9be96dc04 100644 --- a/fastbootd/commands.c +++ b/fastbootd/commands.c @@ -173,7 +173,7 @@ static void cmd_erase(struct protocol_handle *phandle, const char *arg) return; } - if (path == NULL) { + if (!path[0]) { fastboot_fail(phandle, "Couldn't find partition"); return; }