minor: fix hb_ot_layout_get_ligature_carets

This commit is contained in:
Pip Cet 2020-05-20 10:01:24 +00:00
parent 3dd7b2105b
commit 461cd5a158

View File

@ -369,7 +369,7 @@ hb_ot_layout_get_ligature_carets (hb_font_t *font,
unsigned int *caret_count /* IN/OUT */,
hb_position_t *caret_array /* OUT */)
{
unsigned int result_caret_count = 0;
unsigned int result_caret_count = caret_count ? *caret_count : 0;
unsigned int result = font->face->table.GDEF->table->get_lig_carets (font, direction, glyph, start_offset, &result_caret_count, caret_array);
if (result)
{