summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-12 14:18:03 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-14 17:01:55 +0100
commit13df9c398d60e441a65b11ada491f750947649bf (patch)
treead1aed8e02e8ee9ca9abc54bb6defe3863b47ebc /src/test
parentlocaled: be more careful with the used types (diff)
downloadsystemd-13df9c398d60e441a65b11ada491f750947649bf.tar.xz
systemd-13df9c398d60e441a65b11ada491f750947649bf.zip
fileio: automatically add NULL sentinel to parse_env_file()
Let's modernize things a bit.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-fileio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test-fileio.c b/src/test/test-fileio.c
index 8719ec26bb..ac86d6d588 100644
--- a/src/test/test-fileio.c
+++ b/src/test/test-fileio.c
@@ -92,8 +92,7 @@ static void test_parse_env_file(void) {
"seven", &seven,
"eight", &eight,
"export nine", &nine,
- "ten", &ten,
- NULL);
+ "ten", &ten);
assert_se(r >= 0);