* 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:
parent
ef63669652
commit
8fc6df1028
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue