summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-05-09 14:16:11 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-05-09 14:33:59 +0900
commitfedd793ceaf3c2b5f9a8908cedf95b0aaccf3ea4 (patch)
tree16b04d0d962cf304a85ab5fad374b1cd6af1b4e6 /src
parentdd568427fb545c54c5a06720250957e490e2a00a (diff)
downloadsystemd-fedd793ceaf3c2b5f9a8908cedf95b0aaccf3ea4.tar.gz
test: add one more assertion to make Coverty happy
Fixes CID#1452934.
Diffstat (limited to 'src')
-rw-r--r--src/test/test-strbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-strbuf.c b/src/test/test-strbuf.c
index 0cdef3fb72..a7c2f83c73 100644
--- a/src/test/test-strbuf.c
+++ b/src/test/test-strbuf.c
@@ -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"));