From c12cde1bea7a530d9771dccdaa907a65aa6a44ed Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 3 Sep 2022 11:12:29 +0100 Subject: [PATCH] Fix an uninitialised variable. This looks like a real error! And recently introduced, in commit cd094b28a3b1779. --- windows/controls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/windows/controls.c b/windows/controls.c index e02e3e3d..ae5a81fc 100644 --- a/windows/controls.c +++ b/windows/controls.c @@ -1540,6 +1540,7 @@ void winctrl_layout(struct dlgparam *dp, struct winctrls *wc, sfree(escaped); sfree(wrapped); } else { + num_ids = 1; editboxfw(&pos, false, true, NULL, 0, base_id); SetDlgItemText(pos.hwnd, base_id, ctrl->label); MakeDlgItemBorderless(pos.hwnd, base_id);