Fix bug in hb_language_from_string()

Reported by Jonathan Kew.
This commit is contained in:
Behdad Esfahbod 2010-04-29 02:58:38 -04:00
parent 602e4f8d55
commit 3a4784fe88
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,8 @@ hb_language_from_string (const char *str)
for (p = (unsigned char *) langs[i]; *p; p++)
*p = canon_map[*p];
num_langs++;
return (hb_language_t) langs[i];
}