mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
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.
This commit is contained in:
parent
d216544802
commit
8590b7f2e2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user