mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Fix uninitialised field in ctrl_fileselect.
In commit694d5184b7
, I introduced the 'just_button' flag for CTRL_FILESELECT controls, and in commitddcd93ab12
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:
parent
c88b6d1853
commit
a33cf2240e
1
dialog.c
1
dialog.c
@ -402,6 +402,7 @@ dlgcontrol *ctrl_filesel(struct controlset *s, const char *label,
|
|||||||
c->fileselect.filter = filter;
|
c->fileselect.filter = filter;
|
||||||
c->fileselect.for_writing = write;
|
c->fileselect.for_writing = write;
|
||||||
c->fileselect.title = dupstr(title);
|
c->fileselect.title = dupstr(title);
|
||||||
|
c->fileselect.just_button = false;
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user