From: Tim Kientzle Date: Thu, 28 Apr 2016 06:27:43 +0000 (-0700) Subject: Issue 693: assert() wants a boolean, not a pointer X-Git-Tag: v3.2.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c917762d6d90a430458bd728c882242544bc8955;p=thirdparty%2Flibarchive.git Issue 693: assert() wants a boolean, not a pointer --- diff --git a/tar/test/test_leading_slash.c b/tar/test/test_leading_slash.c index a390e11fe..a8921ebcb 100644 --- a/tar/test/test_leading_slash.c +++ b/tar/test/test_leading_slash.c @@ -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); } }