tty-ask-password-agent: drop NULL sentinel
authorLennart Poettering <lennart@poettering.net>
Wed, 29 Nov 2017 18:53:53 +0000 (19:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 Nov 2017 19:12:26 +0000 (20:12 +0100)
found by coccinelle

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

index 3824d2f..1553655 100644 (file)
@@ -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;
                         }
                 }