From df417b479cb81f3bc0c042dd6568eca5aa1e684f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 26 Feb 2012 11:17:11 -0500 Subject: [PATCH] calling newlocale() with wc_locales[0] as the third argument causes a segfault; change to NULL --- webcit/gettext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcit/gettext.c b/webcit/gettext.c index 1e51e93ac..d8b48f1b1 100644 --- a/webcit/gettext.c +++ b/webcit/gettext.c @@ -283,7 +283,7 @@ void initialize_locales(void) { wc_locales[nLocalesLoaded] = newlocale( (LC_MESSAGES_MASK|LC_TIME_MASK), AvailLang[i], - wc_locales[0] + NULL ); if (wc_locales[nLocalesLoaded] == NULL) { syslog(1, "locale for %s disabled: %s", AvailLang[i], strerror(errno)); -- 2.30.2