summaryrefslogtreecommitdiffstats
path: root/src/test/test-strv.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-28 12:46:52 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-03-28 12:46:52 +0100
commit42b977810d31585656ba475c86a31976e1e1f310 (patch)
tree1380ede643a9aff2dc15f1ddbe15187d77e35a09 /src/test/test-strv.c
parentAdd a device to 60-sensor.hwdb (diff)
downloadsystemd-42b977810d31585656ba475c86a31976e1e1f310.tar.xz
systemd-42b977810d31585656ba475c86a31976e1e1f310.zip
test-strv: add missing oom check
CID#1420259.
Diffstat (limited to 'src/test/test-strv.c')
-rw-r--r--src/test/test-strv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-strv.c b/src/test/test-strv.c
index dd6233175c..68c128cf80 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"));