summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-varlink/sd-varlink.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-09-19 23:58:00 +0200
committerMike Yuan <me@yhndnzj.com>2024-09-21 00:53:50 +0200
commita2c8652a2a9cb8f33af3fb912fdfe155ae5ff3ef (patch)
tree0c660fd49807584607d78d3d415a65e53d43193c /src/libsystemd/sd-varlink/sd-varlink.c
parentbasic/strv: introduce strv_extend_strv_consume() (diff)
downloadsystemd-a2c8652a2a9cb8f33af3fb912fdfe155ae5ff3ef.tar.xz
systemd-a2c8652a2a9cb8f33af3fb912fdfe155ae5ff3ef.zip
tree-wide: use strv_extend_strv_consume() where appropriate
Diffstat (limited to 'src/libsystemd/sd-varlink/sd-varlink.c')
-rw-r--r--src/libsystemd/sd-varlink/sd-varlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-varlink/sd-varlink.c b/src/libsystemd/sd-varlink/sd-varlink.c
index a0aa12a386..007746f64f 100644
--- a/src/libsystemd/sd-varlink/sd-varlink.c
+++ b/src/libsystemd/sd-varlink/sd-varlink.c
@@ -410,7 +410,7 @@ static int varlink_connect_ssh_exec(sd_varlink **ret, const char *where) {
full_cmdline = strv_new("ssh", "-e", "none", "-T", h, "env", "SYSTEMD_VARLINK_LISTEN=-");
if (!full_cmdline)
return log_oom_debug();
- r = strv_extend_strv(&full_cmdline, cmdline, /* filter_duplicates= */ false);
+ r = strv_extend_strv_consume(&full_cmdline, TAKE_PTR(cmdline), /* filter_duplicates= */ false);
if (r < 0)
return log_oom_debug();