summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-06-13 14:37:39 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-06-13 14:37:39 -0700
commit8476e5fbddafc171903470000e86a68f66dc3958 (patch)
tree198ec9da85476d9819b5d01d85e599d2dbcb22e1
parent41503ac2d7c84502074b3b6528478fe017060ef7 (diff)
Don't segfault if unable to load a usable fontset
-rw-r--r--Clock.c5
1 files changed, 4 insertions, 1 deletions
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)