Commit 0813cbf9 authored by Peter Maydell's avatar Peter Maydell
Browse files

tests/hd-geo-test: Don't pass NULL to unlink()



The unlink() function doesn't accept a NULL pointer, so
don't pass it one. Spotted by the clang sanitizer.

Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarJohn Snow <jsnow@redhat.com>
Message-id: 1470391392-28274-1-git-send-email-peter.maydell@linaro.org
parent 7faae0b3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -416,8 +416,10 @@ int main(int argc, char **argv)
    ret = g_test_run();

    for (i = 0; i < backend_last; i++) {
        if (img_file_name[i]) {
            unlink(img_file_name[i]);
        }
    }

    return ret;
}