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

Fix uninitialised field in ctrl_fileselect.

In commit 694d5184b7, I introduced the 'just_button' flag for
CTRL_FILESELECT controls, and in commit ddcd93ab12 I added a use
of such a control with the flag set to true.

But I forgot to set it to false everywhere else, which caused an
assertion failure when selecting the Bell pane in Windows PuTTY. Oops.
This commit is contained in:
Simon Tatham 2022-07-24 14:08:56 +01:00
parent c88b6d1853
commit a33cf2240e

View File

@ -402,6 +402,7 @@ dlgcontrol *ctrl_filesel(struct controlset *s, const char *label,
c->fileselect.filter = filter;
c->fileselect.for_writing = write;
c->fileselect.title = dupstr(title);
c->fileselect.just_button = false;
return c;
}