xfstests: eliminate warnings under dmapi/src/suite1/cmd (3)
[xfstests-dev.git] / dmapi / src / suite1 / cmd / security_hole.c
index c7c3db35b456e6c34ea5f81f6252983f22fdc2f6..d34026da7d4b8f15d9688f7ebc78ba3e81c86a36 100644 (file)
@@ -63,7 +63,8 @@ main(
        int     opt;
        int     fd;
 
-       if (Progname = strrchr(argv[0], '/')) {
+       Progname = strrchr(argv[0], '/');
+       if (Progname) {
                Progname++;
        } else {
                Progname = argv[0];