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/tmpfiles | |
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/tmpfiles')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 6a1215d626..4ebdaddb5b 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -3387,7 +3387,7 @@ static int run(int argc, char *argv[]) { if (!j) return log_oom(); - if (!strextend(&t, "\n\t", j, NULL)) + if (!strextend(&t, "\n\t", j)) return log_oom(); } |