summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <gustavo.barbieri@intel.com>2014-03-06 11:04:41 -0300
committerGustavo Sverzut Barbieri <gustavo.barbieri@intel.com>2014-03-06 11:08:48 -0300
commit6662fad5086552380507f9c1912081578fdc86e2 (patch)
tree1f63cdbfaae6189cf6a0cc3ec2c92cb8f1b498b2 /src/lib
parentfed4aafcdc0366edd90ab9c7ebbfa713373672b7 (diff)
elm_widget: @fix use of uninitialized values.
Valgrind reports n and weight could be read before they were written to.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_widget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 8a2a70b77..b3bfb639c 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -2934,9 +2934,9 @@ _elm_widget_focus_list_next_get(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
2934 } 2934 }
2935 else 2935 else
2936 { 2936 {
2937 Evas_Object *n; 2937 Evas_Object *n = NULL;
2938 double degree; 2938 double degree;
2939 double weight; 2939 double weight = 0.0;
2940 2940
2941 if (dir == ELM_FOCUS_UP) degree = 0.0; 2941 if (dir == ELM_FOCUS_UP) degree = 0.0;
2942 else if (dir == ELM_FOCUS_DOWN) degree = 180.0; 2942 else if (dir == ELM_FOCUS_DOWN) degree = 180.0;