summaryrefslogtreecommitdiff
path: root/src/portable
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/portable
parent0ec1dc5ba395d797a0f7eaec88ba58e1b99a2ef3 (diff)
downloadsystemd-c2bc710b247db83d7964f2259144c0c70defe2da.tar.gz
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/portable')
-rw-r--r--src/portable/portable.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c
index ed7eac0291..a96a944ad1 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
@@ -710,9 +710,7 @@ static int install_chroot_dropin(
IN_SET(type, IMAGE_DIRECTORY, IMAGE_SUBVOLUME) ? "RootDirectory=" : "RootImage=", image_path, "\n"
"Environment=PORTABLE=", basename(image_path), "\n"
"BindReadOnlyPaths=", os_release_source, ":/run/host/os-release\n"
- "LogExtraFields=PORTABLE=", basename(image_path), "\n",
- NULL))
-
+ "LogExtraFields=PORTABLE=", basename(image_path), "\n"))
return -ENOMEM;
}