summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-varlink/sd-varlink.c
diff options
context:
space:
mode:
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();