From: Zbigniew Jędrzejewski-Szmek Date: Sat, 28 Mar 2020 11:46:52 +0000 (+0100) Subject: test-strv: add missing oom check X-Git-Tag: v246-rc1~681^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42b977810d31585656ba475c86a31976e1e1f310;p=thirdparty%2Fsystemd.git test-strv: add missing oom check CID#1420259. --- diff --git a/src/test/test-strv.c b/src/test/test-strv.c index dd6233175c0..68c128cf80d 100644 --- a/src/test/test-strv.c +++ b/src/test/test-strv.c @@ -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"));