1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-01 13:20:43 +00:00

Merge pull request from plaidman/fixing-lang-code

check if lang code is null before processing
This commit is contained in:
Twinaphex 2019-05-11 22:06:35 +02:00 committed by GitHub
commit e7daf41bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5478,6 +5478,10 @@ enum retro_language rarch_get_language_from_iso(const char *iso639)
{"el", RETRO_LANGUAGE_GREEK},
};
if (string_is_empty(iso639)) {
return lang;
}
for (i = 0; i < sizeof(pairs) / sizeof(pairs[0]); i++)
{
if (strcasestr(iso639, pairs[i].iso639))