From: Lennart Poettering Date: Wed, 3 Apr 2019 18:10:19 +0000 (+0200) Subject: tty-ask-pw-agent: use right array X-Git-Tag: v242-rc3~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65e5d6934ec85febb6eb64e18ce829ddc9dee497;p=thirdparty%2Fsystemd.git tty-ask-pw-agent: use right array No point in copying the array if we are not going to use the copy. Prompted by: https://github.com/systemd/systemd/pull/12183#issuecomment-479591781 --- diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c index b5604a745a2..0a65f4ee856 100644 --- a/src/tty-ask-password-agent/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent/tty-ask-password-agent.c @@ -736,7 +736,7 @@ static int ask_on_this_console(const char *tty, pid_t *ret_pid, char *argv[]) { free_and_replace(*i, k); } - execv(SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, argv); + execv(SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, arguments); _exit(EXIT_FAILURE); }