Make hb_language_from_string("") return NULL language
This commit is contained in:
parent
db60c96f20
commit
316b7a1afb
|
@ -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++)
|
||||||
|
|
Loading…
Reference in New Issue