1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 01:18:00 +00:00

Add missing initialisation of prompts_t idata.

Apparently in all my test runs on Linux it happened to start off
negative. But as soon as I tested on Windows, that initialised the
memory to something unhelpful.
This commit is contained in:
Simon Tatham 2021-09-14 14:30:44 +01:00
parent 3037258808
commit 42f3a2f6d5

View File

@ -11,6 +11,7 @@ prompts_t *new_prompts(void)
p->prompts = NULL;
p->n_prompts = p->prompts_size = 0;
p->data = NULL;
p->idata = -1;
p->to_server = true; /* to be on the safe side */
p->name = p->instruction = NULL;
p->name_reqd = p->instr_reqd = false;