Fixed segfault for mode switching when compiled with clang
[oweals/cde.git] / cde / programs / dtcalc / motif.c
index 7225747766e8e74d305befb6a62490f563556df3..753456c23fcd5fd0676f8c3ef4d0696a1314e23c 100644 (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);