1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Fixed segfault for mode switching when compiled with clang

dtcalc compiled with clang segfaulted when switched
to a different mode like Deg to Rad or Financial to
Scientific. Was reproducable at least under FreeBSD/AMD64.
Fixed now.
This commit is contained in:
tu83 2019-01-06 18:55:19 +01:00
parent 76721c2348
commit d5faa0360c

View file

@ -3295,7 +3295,8 @@ static void
modelineValueChanged(Widget widget, XtPointer client_data, XtPointer call_data)
{
Arg args[1];
int val, choice;
int choice;
XtArgVal val;
X->mtype = (enum menu_type) client_data ;
XtSetArg (args[0], XmNuserData, &val);