Fix occasional crash in lwlib due to uninitialized data

Crash observed on cfarm's cfarm210 machine, which is a Solaris 10 zone
on an M3000 server.

* lwlib/xlwmenu.c (XlwMenuInitialize): Initialize menu.font.
This commit is contained in:
Pip Cet 2024-12-09 12:48:54 +00:00
parent 6df535788a
commit cb288fbcd9
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2024-12-09 Pip Cet <pipcet@protonmail.com>
* lwlib/xlwmenu.c (XlwMenuInitialize): Initialize menu.font.
2015-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
* xlwmenu.c (pop_up_menu): Remove debugging code.

View file

@ -2120,7 +2120,7 @@ XlwMenuInitialize (Widget request, Widget w, ArgList args, Cardinal *num_args)
#if defined USE_CAIRO || defined HAVE_XFT
if (openXftFont (mw))
;
mw->menu.font = NULL;
else
#endif
{