aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-07-13 12:02:20 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-07-13 12:02:20 +0900
commit5871593ed16b081a3da2ef4cdb53fed8fc3612cb (patch)
tree48a38b292b4ff717dc3e6bf0c3c95ad1d7c4811a
parentedje_cc: Fix minor coverity defect (diff)
downloadefl-5871593ed16b081a3da2ef4cdb53fed8fc3612cb.tar.gz
elm test: Fix non sense check
CID 1353720 1353721
-rw-r--r--src/bin/elementary/test_gengrid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/elementary/test_gengrid.c b/src/bin/elementary/test_gengrid.c
index 92a7b016dd..f1768e4a76 100644
--- a/src/bin/elementary/test_gengrid.c
+++ b/src/bin/elementary/test_gengrid.c
@@ -526,7 +526,7 @@ static void
_btn_bring_in_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
api_data *api = data;
- if (!api && !api->grid) return;
+ if (!api || !api->grid) return;
Elm_Object_Item *it = elm_gengrid_selected_item_get(api->grid);
if (!it) return;
@@ -537,7 +537,7 @@ static void
_btn_show_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
api_data *api = data;
- if (!api && !api->grid) return;
+ if (!api || !api->grid) return;
Elm_Object_Item *it = elm_gengrid_selected_item_get(api->grid);
if (!it) return;