strings with no locale should be added to the defalt locale

This commit is contained in:
Enno Rehling 2003-07-10 08:23:56 +00:00
parent d29cd0a384
commit 3071cdb322
1 changed files with 1 additions and 1 deletions

View File

@ -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;