summaryrefslogtreecommitdiffstats
path: root/src/shutdown
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/shutdown
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/shutdown')
-rw-r--r--src/shutdown/umount.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c
index 3a72a13e1a..906756292b 100644
--- a/src/shutdown/umount.c
+++ b/src/shutdown/umount.c
@@ -96,13 +96,9 @@ int mount_points_list_get(const char *mountinfo, MountPoint **head) {
* Even if there are duplicates later in mount_option_mangle()
* they shouldn't hurt anyways as they override each other.
*/
- if (!strextend_with_separator(&options, ",",
- mnt_fs_get_vfs_options(fs),
- NULL))
+ if (!strextend_with_separator(&options, ",", mnt_fs_get_vfs_options(fs)))
return log_oom();
- if (!strextend_with_separator(&options, ",",
- mnt_fs_get_fs_options(fs),
- NULL))
+ if (!strextend_with_separator(&options, ",", mnt_fs_get_fs_options(fs)))
return log_oom();
/* Ignore mount points we can't unmount because they