diff options
author | Simon Tatham <anakin@pobox.com> | 2022-09-07 16:01:51 +0300 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2022-09-07 22:21:11 +0300 |
commit | 8590b7f2e20d40678901438a2482837dac491851 (patch) | |
tree | 3af548abf89717d0f2b47eba44e05aed3a581f10 /unix | |
parent | d2165448021d434e8762c117cafd65cc689557b7 (diff) |
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.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/console.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |