summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
parentb14ef34ab8791a0a730b8d4fea6bc84cdee1ec9c (diff)
downloadefl-ee8d06c806f1399de1313b0e323571c74ddaf548.tar.gz
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 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: T7030 Differential Revision: https://phab.enlightenment.org/D6538
-rw-r--r--src/lib/elementary/efl_ui_win.c3
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;
}