Skip to content
Permalink
Browse files

tty-ask-pw-agent: use right array

No point in copying the array if we are not going to use the copy.

Prompted by: #12183 (comment)
  • Loading branch information...
poettering authored and yuwata committed Apr 3, 2019
1 parent fc40bfa commit 65e5d6934ec85febb6eb64e18ce829ddc9dee497
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 65e5d69

Please sign in to comment.
You can’t perform that action at this time.