From bed1e28d8505f9c013ef3f7b5edeb284c2736855 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Wed, 13 Jul 2016 12:58:43 +0900 Subject: [PATCH] elm test: Shut up coverity warning CID 1354839 It was non-sensical as there would be no iterator if there are no children. --- src/bin/elementary/test_ui_box.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/elementary/test_ui_box.c b/src/bin/elementary/test_ui_box.c index 7c83b4adf7..435376fe6e 100644 --- a/src/bin/elementary/test_ui_box.c +++ b/src/bin/elementary/test_ui_box.c @@ -158,6 +158,8 @@ _custom_engine_layout_do(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, // Note: This is a TERRIBLE layout. Just an example of the API, not showing // how to write a proper layout function. + if (!count) return; + efl_gfx_geometry_get(pack, &px, &py, &pw, &ph); EINA_ITERATOR_FOREACH(it, sobj) {