Fix bug in hb_language_from_string()
Reported by Jonathan Kew.
This commit is contained in:
parent
602e4f8d55
commit
3a4784fe88
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue