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/resolve/resolved-link-bus.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/resolve/resolved-link-bus.c')
-rw-r--r-- | src/resolve/resolved-link-bus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resolve/resolved-link-bus.c b/src/resolve/resolved-link-bus.c index d27d46b11f..e435fd3a80 100644 --- a/src/resolve/resolved-link-bus.c +++ b/src/resolve/resolved-link-bus.c @@ -290,7 +290,7 @@ static int bus_link_method_set_dns_servers_internal(sd_bus_message *message, voi goto finalize; } - if (!strextend_with_separator(&j, ", ", s, NULL)) { + if (!strextend_with_separator(&j, ", ", s)) { r = -ENOMEM; goto finalize; } @@ -387,7 +387,7 @@ int bus_link_method_set_domains(sd_bus_message *message, void *userdata, sd_bus_ name = prefixed; } - if (!strextend_with_separator(&j, ", ", name, NULL)) + if (!strextend_with_separator(&j, ", ", name)) return -ENOMEM; } @@ -702,7 +702,7 @@ int bus_link_method_set_dnssec_negative_trust_anchors(sd_bus_message *message, v if (r < 0) return r; - if (!strextend_with_separator(&j, ", ", *i, NULL)) + if (!strextend_with_separator(&j, ", ", *i)) return -ENOMEM; } |