diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-01-05 15:03:41 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-01-06 17:24:46 +0100 |
commit | c2bc710b247db83d7964f2259144c0c70defe2da (patch) | |
tree | e1982e0816bc2ddea91410999318dde40d134549 /src/fstab-generator/fstab-generator.c | |
parent | update TODO (diff) | |
download | systemd-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/fstab-generator/fstab-generator.c')
-rw-r--r-- | src/fstab-generator/fstab-generator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index 15f5892228..2318b65b0e 100644 --- a/src/fstab-generator/fstab-generator.c +++ b/src/fstab-generator/fstab-generator.c @@ -843,7 +843,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat if (proc_cmdline_value_missing(key, value)) return 0; - if (!strextend_with_separator(&arg_root_options, ",", value, NULL)) + if (!strextend_with_separator(&arg_root_options, ",", value)) return log_oom(); } else if (streq(key, "roothash")) { @@ -875,7 +875,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat if (proc_cmdline_value_missing(key, value)) return 0; - if (!strextend_with_separator(&arg_usr_options, ",", value, NULL)) + if (!strextend_with_separator(&arg_usr_options, ",", value)) return log_oom(); } else if (streq(key, "rw") && !value) |