efl_ui_textpath: make sure variables are not uses uninitialized

First and last could have been uninitialized for their first use in some
cases. Make sure we set the x y coordinates to 0 to begin with.

Coverity IDs: 1401458, 1404747

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D10044
This commit is contained in:
Stefan Schmidt 2019-09-20 10:36:17 +02:00
parent f7e183b851
commit c02dcf6966
1 changed files with 2 additions and 1 deletions

View File

@ -577,7 +577,8 @@ _path_start_angle_adjust(Eo *obj, Efl_Ui_Textpath_Data *pd)
{
Eina_Rect r;
Efl_Ui_Textpath_Segment *seg;
Eina_Vector2 first, last;
Eina_Vector2 first = { 0, 0 };
Eina_Vector2 last = { 0, 0 };
int remained_w, len;
double rad, t, offset_angle;