提交 316b7a1a 编写于 作者: B Behdad Esfahbod

Make hb_language_from_string("") return NULL language

上级 db60c96f
......@@ -85,7 +85,7 @@ hb_language_from_string (const char *str)
/* TODO Use a hash table or something */
if (!str)
if (!str || !*str)
return NULL;
for (i = 0; i < num_langs; i++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册