xfstests: eliminate warnings under dmapi/src/suite2/src
[xfstests-dev.git] / dmapi / src / suite2 / src / test_hole.c
index a000f26ed2536d83dd38cebeada2cfc224a1ddec..3c2c4fcd1eca2e9716488a442cee1e45fc6a41ba 100644 (file)
@@ -90,7 +90,8 @@ main(
        struct stat    checkbuf;
 
 
-       if (Progname = strrchr(argv[0], '/')) {
+       Progname = strrchr(argv[0], '/');
+       if (Progname) {
                Progname++;
        } else {
                Progname = argv[0];