diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-09-19 23:58:00 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-09-21 00:53:50 +0200 |
commit | a2c8652a2a9cb8f33af3fb912fdfe155ae5ff3ef (patch) | |
tree | 0c660fd49807584607d78d3d415a65e53d43193c /src/libsystemd/sd-varlink/sd-varlink.c | |
parent | basic/strv: introduce strv_extend_strv_consume() (diff) | |
download | systemd-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.c | 2 |
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(); |