mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48: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];
|
char line[32];
|
||||||
struct termios cf;
|
struct termios cf;
|
||||||
const char *prompt;
|
const char *prompt = NULL;
|
||||||
|
|
||||||
stdio_sink errsink[1];
|
stdio_sink errsink[1];
|
||||||
stdio_sink_init(errsink, stderr);
|
stdio_sink_init(errsink, stderr);
|
||||||
@ -146,6 +146,7 @@ SeatPromptResult console_confirm_ssh_host_key(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
assert(prompt); /* something in the SeatDialogText should have set this */
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
|
Loading…
Reference in New Issue
Block a user