Skip to content

Commit 65e5d69

Browse files
poetteringyuwata
authored andcommitted
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)
1 parent fc40bfa commit 65e5d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tty-ask-password-agent/tty-ask-password-agent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ static int ask_on_this_console(const char *tty, pid_t *ret_pid, char *argv[]) {
736736
free_and_replace(*i, k);
737737
}
738738

739-
execv(SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, argv);
739+
execv(SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, arguments);
740740
_exit(EXIT_FAILURE);
741741
}
742742

0 commit comments

Comments
 (0)