summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-dhcp-lease.c
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/libsystemd-network/sd-dhcp-lease.c
parent608eea8ea0ad89cea964237b732de230c8b11970 (diff)
downloadsystemd-13df9c398d60e441a65b11ada491f750947649bf.tar.gz
fileio: automatically add NULL sentinel to parse_env_file()
Let's modernize things a bit.
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-lease.c')
-rw-r--r--src/libsystemd-network/sd-dhcp-lease.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-dhcp-lease.c b/src/libsystemd-network/sd-dhcp-lease.c
index 8fe468d468..a90c01d7db 100644
--- a/src/libsystemd-network/sd-dhcp-lease.c
+++ b/src/libsystemd-network/sd-dhcp-lease.c
@@ -1067,8 +1067,7 @@ int dhcp_lease_load(sd_dhcp_lease **ret, const char *lease_file) {
"OPTION_251", &options[27],
"OPTION_252", &options[28],
"OPTION_253", &options[29],
- "OPTION_254", &options[30],
- NULL);
+ "OPTION_254", &options[30]);
if (r < 0)
return r;