From 42f3a2f6d572aaa72a9e70f103138f7b192dd432 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 14 Sep 2021 14:30:44 +0100 Subject: [PATCH] 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. --- utils/prompts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/prompts.c b/utils/prompts.c index 8784130d..583316f6 100644 --- a/utils/prompts.c +++ b/utils/prompts.c @@ -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;