Make hb_language_from_string("") return NULL language

This commit is contained in:
Behdad Esfahbod 2011-04-11 17:49:10 -04:00
parent db60c96f20
commit 316b7a1afb
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ hb_language_from_string (const char *str)
/* TODO Use a hash table or something */ /* TODO Use a hash table or something */
if (!str) if (!str || !*str)
return NULL; return NULL;
for (i = 0; i < num_langs; i++) for (i = 0; i < num_langs; i++)