check if lang code is null before processing

This commit is contained in:
plaidman 2019-05-11 08:50:38 -04:00
parent 4212e5b190
commit b7929b4ac7

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++)
{