path: root/src/lib/elementary/efl_ui_win.c
diff options
authorXavi Artigas <xavierartigas@yahoo.es>2018-07-09 13:32:58 -0400
committerChris Michael <cp.michael@samsung.com>2018-07-09 13:32:58 -0400
commitee8d06c806f1399de1313b0e323571c74ddaf548 (patch)
tree7dfd10736dbcec300b4158bb70fbcaf8b31b3772 /src/lib/elementary/efl_ui_win.c
parenttests/eina: make inclusion for define explicit and more compatible (diff)
elementary: Avoid passing NULL in some win focus methods
Summary: This one is rather harmless, as the NULL returned by this fuction is handled correctly in all places, but this commit removes the runtime warning. ref https://phab.enlightenment.org/T7030 Test Plan: After this commit the warning disappears. Got the warning with win_example. Reviewers: zmike, bu5hm4n, devilhorns Reviewed By: devilhorns Subscribers: netstar, cedric, #committers Tags: #efl Maniphest Tasks: https://phab.enlightenment.org/T7030 Differential Revision: https://phab.enlightenment.org/D6538
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index cead522d10..c1477b703d 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -2655,7 +2655,7 @@ _elm_win_focus_target_get(Evas_Object *obj)
Evas_Object *o = obj;
- do
+ while (o)
if (elm_widget_is(o))
@@ -2664,7 +2664,6 @@ _elm_win_focus_target_get(Evas_Object *obj)
o = elm_widget_parent_widget_get(o);
- while (o);
return o;