]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-strsep.c
In man(1) mode, properly clean up the resn[] result array
[mandoc.git] / test-strsep.c
index 4c57c13e2cea3bfc1fdbef102d08752f329d4f61..18bbb109a5b0acda918f0b25c40bad2093d323a7 100644 (file)
@@ -6,5 +6,5 @@ main(void)
        char buf[6] = "aybxc";
        char *workp = buf;
        char *retp = strsep(&workp, "xy");
-       return( ! (retp == buf && '\0' == buf[1] && buf + 2 == workp));
+       return ! (retp == buf && buf[1] == '\0' && workp == buf + 2);
 }