Merge pull request #8756 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

View File

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