* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use for-loop.

Even though we never call `TT_Load_Simple_Glyph` with zero contours,
out of abundance of precaution, let's handle this case properly.
This commit is contained in:
Alexei Podtelezhnikov 2023-03-17 23:35:10 -04:00
parent ef63669652
commit 8fc6df1028
1 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@
cont_limit = cont + n_contours;
last = -1;
do
for ( ; cont < cont_limit; cont++ )
{
*cont = FT_NEXT_SHORT( p );
@ -396,7 +396,7 @@
goto Invalid_Outline;
last = *cont;
} while ( ++cont < cont_limit );
}
n_points = last + 1;