From 8590b7f2e20d40678901438a2482837dac491851 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 7 Sep 2022 14:01:51 +0100 Subject: [PATCH] unix/console.c: add the same assertion again. Somehow I missed that Coverity reported that complaint about a (theoretically) uninitialised pointer twice, against the two platforms' console.c files. Now fixed the same way in the other one. --- unix/console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/console.c b/unix/console.c index 75e51a7f..286ecf29 100644 --- a/unix/console.c +++ b/unix/console.c @@ -109,7 +109,7 @@ SeatPromptResult console_confirm_ssh_host_key( { char line[32]; struct termios cf; - const char *prompt; + const char *prompt = NULL; stdio_sink errsink[1]; stdio_sink_init(errsink, stderr); @@ -146,6 +146,7 @@ SeatPromptResult console_confirm_ssh_host_key( break; } } + assert(prompt); /* something in the SeatDialogText should have set this */ while (true) { fprintf(stderr,