From 3071cdb3220efb458db7908dee35cb14ae346eba Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 10 Jul 2003 08:23:56 +0000 Subject: [PATCH] strings with no locale should be added to the defalt locale --- src/common/util/language.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util/language.c b/src/common/util/language.c index 45c1e7e00..f9a1bf289 100644 --- a/src/common/util/language.c +++ b/src/common/util/language.c @@ -128,7 +128,7 @@ locale_setstring(locale * lang, const char * key, const char * value) unsigned int id = hkey % SMAXHASH; struct locale_string * find; - assert(lang); + if (lang==NULL) lang=default_locale; find = lang->strings[id]; while (find) { if (find->hashkey==hkey && !strcmp(key, find->key)) break;