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/hibernate-resume | |
parent | 0ec1dc5ba395d797a0f7eaec88ba58e1b99a2ef3 (diff) | |
download | systemd-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/hibernate-resume')
-rw-r--r-- | src/hibernate-resume/hibernate-resume-generator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hibernate-resume/hibernate-resume-generator.c b/src/hibernate-resume/hibernate-resume-generator.c index 04a28c9053..b1e5452bb0 100644 --- a/src/hibernate-resume/hibernate-resume-generator.c +++ b/src/hibernate-resume/hibernate-resume-generator.c @@ -45,7 +45,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_resume_options, ",", value, NULL)) + if (!strextend_with_separator(&arg_resume_options, ",", value)) return log_oom(); } else if (streq(key, "rootflags")) { @@ -53,7 +53,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, "noresume")) { |