]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-strv.c
basic/strv: add an extra NUL after strings in strv_make_nulstr
[thirdparty/systemd.git] / src / test / test-strv.c
index 91265c9cbab759d257394655eab9f6ef09afb3a7..841a36782f4f6a080195b518a447943b45cc01af 100644 (file)
@@ -659,9 +659,8 @@ static void test_strv_make_nulstr_one(char **l) {
         assert_se(m == n);
         assert_se(memcmp(b, c, m) == 0);
 
-        NULSTR_FOREACH(s, b) {
+        NULSTR_FOREACH(s, b)
                 assert_se(streq(s, l[i++]));
-        }
         assert_se(i == strv_length(l));
 }