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 3824d2f5b5..1553655a28 100644 --- a/src/tty-ask-password-agent/tty-ask-password-agent.c +++ b/src/tty-ask-password-agent/tty-ask-password-agent.c @@ -721,7 +721,7 @@ static int ask_on_this_console(const char *tty, pid_t *pid, int argc, char *argv for (ac = 0; ac < argc; ac++) { if (streq(argv[ac], "--console")) { - argv[ac] = strjoina("--console=", tty, NULL); + argv[ac] = strjoina("--console=", tty); break; } }