From f7593fa15ed4acc8202f806aab00cf0414024bd0 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Wed, 15 Feb 2012 13:42:22 -0500 Subject: [PATCH] fix segfaults on tip popups When XAW_INTERNATIONALIZATION isn't defined, some uninitialized stack data was being passed to XtGetValues. This makes it not do that. --- src/Tip.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/Tip.c b/src/Tip.c index 5f54d14..5542fc5 100644 --- a/src/Tip.c +++ b/src/Tip.c @@ -606,8 +606,10 @@ TipTimeoutCallback(XtPointer closure, XtIntervalId *id) #ifdef XAW_INTERNATIONALIZATION info->tip->tip.international = False; XtSetArg(args[1], XtNinternational, &info->tip->tip.international); -#endif XtGetValues(winfo->widget, args, 2); +#else + XtGetValues(winfo->widget, args, 1); +#endif TipLayout(info); TipPosition(info); -- 1.7.9