diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-31 17:03:50 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-31 18:00:52 +0100 |
commit | bea1a01310efdf51b8c609a300d49bf5c25509c3 (patch) | |
tree | 763924b96caa50af59368c5a34d5f3c56c7f6ed0 /src/test/test-serialize.c | |
parent | Merge pull request #10573 from faheel/master (diff) | |
download | systemd-bea1a01310efdf51b8c609a300d49bf5c25509c3.tar.xz systemd-bea1a01310efdf51b8c609a300d49bf5c25509c3.zip |
strv: wrap strv_new() in a macro so that NULL sentinel is implicit
Diffstat (limited to 'src/test/test-serialize.c')
-rw-r--r-- | src/test/test-serialize.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/test-serialize.c b/src/test/test-serialize.c index b70eb3daa7..9a16688a67 100644 --- a/src/test/test-serialize.c +++ b/src/test/test-serialize.c @@ -138,7 +138,7 @@ static void test_deserialize_environment(void) { log_info("/* %s */", __func__); - assert_se(env = strv_new("A=1", NULL)); + assert_se(env = strv_new("A=1")); assert_se(deserialize_environment("B=2", &env) >= 0); assert_se(deserialize_environment("FOO%%=a\\177b\\nc\\td e", &env) >= 0); @@ -162,8 +162,7 @@ static void test_serialize_environment(void) { "B=2", "C=ąęółń", "D=D=a\\x0Ab", - "FOO%%=a\177b\nc\td e", - NULL)); + "FOO%%=a\177b\nc\td e")); assert_se(serialize_strv(f, "env", env) == 1); assert_se(fflush_and_check(f) == 0); |