forked from enlightenment/efl
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:
parent
f7e183b851
commit
c02dcf6966
|
@ -577,7 +577,8 @@ _path_start_angle_adjust(Eo *obj, Efl_Ui_Textpath_Data *pd)
|
||||||
{
|
{
|
||||||
Eina_Rect r;
|
Eina_Rect r;
|
||||||
Efl_Ui_Textpath_Segment *seg;
|
Efl_Ui_Textpath_Segment *seg;
|
||||||
Eina_Vector2 first, last;
|
Eina_Vector2 first = { 0, 0 };
|
||||||
|
Eina_Vector2 last = { 0, 0 };
|
||||||
int remained_w, len;
|
int remained_w, len;
|
||||||
double rad, t, offset_angle;
|
double rad, t, offset_angle;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue