]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-strv: add missing oom check
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 11:46:52 +0000 (12:46 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 Mar 2020 11:46:52 +0000 (12:46 +0100)
CID#1420259.

src/test/test-strv.c

index dd6233175c092e10a4039ab995041d435448ab95..68c128cf80d1370f568cbc8a484d39dcc7b5ef0e 100644 (file)
@@ -674,7 +674,7 @@ static void test_strv_push_prepend(void) {
 
         log_info("/* %s */", __func__);
 
-        a = strv_new("foo", "bar", "three");
+        assert_se(a = strv_new("foo", "bar", "three"));
 
         assert_se(strv_push_prepend(&a, strdup("first")) >= 0);
         assert_se(streq(a[0], "first"));