From d5faa0360ce804eb613f06d64ede9b6dd5e9c2f1 Mon Sep 17 00:00:00 2001 From: tu83 <7u83@mail.ru> Date: Sun, 6 Jan 2019 18:55:19 +0100 Subject: [PATCH] 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. --- cde/programs/dtcalc/motif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcalc/motif.c b/cde/programs/dtcalc/motif.c index 72257477..753456c2 100644 --- a/cde/programs/dtcalc/motif.c +++ b/cde/programs/dtcalc/motif.c @@ -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); -- 2.25.1