summaryrefslogtreecommitdiffstats
path: root/fastbootd
diff options
context:
space:
mode:
Diffstat (limited to 'fastbootd')
-rw-r--r--fastbootd/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastbootd/commands.c b/fastbootd/commands.c
index 98b7866..9be96dc 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;
}