summaryrefslogtreecommitdiffstats
path: root/src/shared/conf-parser.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-01-05 15:03:41 +0100
committerLennart Poettering <lennart@poettering.net>2021-01-06 17:24:46 +0100
commitc2bc710b247db83d7964f2259144c0c70defe2da (patch)
treee1982e0816bc2ddea91410999318dde40d134549 /src/shared/conf-parser.c
parentupdate TODO (diff)
downloadsystemd-c2bc710b247db83d7964f2259144c0c70defe2da.tar.xz
systemd-c2bc710b247db83d7964f2259144c0c70defe2da.zip
string-util: imply NULL termination of strextend() argument list
The trailing NULL in the argument list is now implied (similar to what we already have in place in strjoin()).
Diffstat (limited to 'src/shared/conf-parser.c')
-rw-r--r--src/shared/conf-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index e8b3dc78f9..0a1f2d67d4 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -343,7 +343,7 @@ int config_parse(
return -ENOBUFS;
}
- if (!strextend(&continuation, l, NULL)) {
+ if (!strextend(&continuation, l)) {
if (flags & CONFIG_PARSE_WARN)
log_oom();
return -ENOMEM;