From 8476e5fbddafc171903470000e86a68f66dc3958 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 13 Jun 2007 14:37:39 -0700 Subject: Don't segfault if unable to load a usable fontset --- Clock.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Clock.c b/Clock.c index 0f8c1b7..5adbad4 100644 --- a/Clock.c +++ b/Clock.c @@ -680,9 +680,12 @@ Initialize (Widget request, Widget new, ArgList args, Cardinal *num_args) + 2 * w->clock.padding; min_height = fse->max_logical_extent.height + 3 * w->clock.padding; + } else { + no_locale = True; } } - else + + if (!no_locale) #endif /* NO_I18N */ { if (w->clock.font == NULL) -- cgit v1.2.3