Issue 693: assert() wants a boolean, not a pointer

This commit is contained in:
Tim Kientzle committed 2016-04-27 23:27:43 -07:00
1 parent a74d6220e4
commit c917762d6d
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ DEFINE_TEST(test_leading_slash)
/* Verify the error output contains the expected text somewhere in it */
if (assertFileExists("test.err")) {
errfile = slurpfile(&errfile_size, "test.err");
assert(strstr(errfile, expected_errmsg));
assert(strstr(errfile, expected_errmsg) != NULL);
}
}