]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add one more assertion to make Coverty happy
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 9 May 2021 05:16:11 +0000 (14:16 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 9 May 2021 05:33:59 +0000 (14:33 +0900)
Fixes CID#1452934.

src/test/test-strbuf.c

index 0cdef3fb729fec904740808599eeb623d283ae69..a7c2f83c731d44f27124769ef315028048783a27 100644 (file)
@@ -29,6 +29,7 @@ static void test_strbuf(void) {
 
         /* check the content of the buffer directly */
         l = strv_parse_nulstr(sb->buf, sb->len);
+        assert_se(l);
 
         assert_se(streq(l[0], "")); /* root */
         assert_se(streq(l[1], "waldo"));