elm test: Shut up coverity warning
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Jul 2016 03:58:43 +0000 (12:58 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Jul 2016 03:58:43 +0000 (12:58 +0900)
CID 1354839

It was non-sensical as there would be no iterator
if there are no children.

src/bin/elementary/test_ui_box.c

index 7c83b4a..435376f 100644 (file)
@@ -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)
      {