Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/unix
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2022-09-07 16:01:51 +0300
committerSimon Tatham <anakin@pobox.com>2022-09-07 22:21:11 +0300
commit8590b7f2e20d40678901438a2482837dac491851 (patch)
tree3af548abf89717d0f2b47eba44e05aed3a581f10 /unix
parentd2165448021d434e8762c117cafd65cc689557b7 (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.c3
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,