Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59970e70 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

Fix clang compiler warning.

commands.c:176:9: error: comparison of array 'path' equal to a null pointer is always false
[-Werror,-Wtautological-pointer-compare]

Change-Id: If6253e948ce219c76e9303e5ae39024094294182
parent 3570072c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }