summaryrefslogtreecommitdiff
path: root/tar/test/test_leading_slash.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2016-04-27 23:27:43 -0700
committerTim Kientzle <kientzle@gmail.com>2016-04-27 23:27:43 -0700
commitc917762d6d90a430458bd728c882242544bc8955 (patch)
treebb6b547faba52b5536a9189d3fb21f5034fbcfe8 /tar/test/test_leading_slash.c
parenta74d6220e4c3b7a10b54ca9266d427d5f3327c49 (diff)
downloadlibarchive-c917762d6d90a430458bd728c882242544bc8955.tar.gz
Issue 693: assert() wants a boolean, not a pointer
Diffstat (limited to 'tar/test/test_leading_slash.c')
-rw-r--r--tar/test/test_leading_slash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/test/test_leading_slash.c b/tar/test/test_leading_slash.c
index a390e11f..a8921ebc 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);
}
}