forked from enlightenment/efl
elm_widget: @fix use of uninitialized values.
Valgrind reports n and weight could be read before they were written to.
This commit is contained in:
parent
cc69143db6
commit
85f1474b6e
|
@ -2934,9 +2934,9 @@ _elm_widget_focus_list_next_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
|
|||
}
|
||||
else
|
||||
{
|
||||
Evas_Object *n;
|
||||
Evas_Object *n = NULL;
|
||||
double degree;
|
||||
double weight;
|
||||
double weight = 0.0;
|
||||
|
||||
if (dir == ELM_FOCUS_UP) degree = 0.0;
|
||||
else if (dir == ELM_FOCUS_DOWN) degree = 180.0;
|
||||
|
|
Loading…
Reference in New Issue