static_libs triangulator: prevent null pointer(ptr) access.

This commit is contained in:
Hermet Park 2016-12-06 19:18:09 +09:00
parent 10fb982ac0
commit 8be045612b
1 changed files with 16 additions and 16 deletions

View File

@ -156,7 +156,7 @@ move_to(Triangulator_Stroker *stroker, const double *pts)
ptr1 = eina_inarray_nth(stroker->arc_pts, 0);
ptr = eina_inarray_nth(stroker->vertices, 0);
i = pts_count;
}
while (front != end)
{
ptr[--i] = ptr1[2 * end - 1];
@ -168,12 +168,12 @@ move_to(Triangulator_Stroker *stroker, const double *pts)
ptr[--i] = ptr1[2 * front + 0];
++front;
}
if (jump)
{
ptr[i - 1] = ptr[i + 1];
ptr[i - 2] = ptr[i + 0];
}
}
break;
}
default: break;