tty-ask-password-agent: drop NULL sentinel
found by coccinelle
This commit is contained in:
parent
2d0bc68450
commit
421eaea0d1
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue