Coverity reports that 'pos' could be null here and we are potentially
dereferencing a NULL pointer, so lets add a check for 'pos' here
before trying to use it.
Fixes Coverity CID1399091
@fix
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8313
Eina_Iterator *it;
Eo *child;
- if (pos) *pos = EINA_POSITION2D(0, 0);
+ if (!pos) return EINA_FALSE;
+
+ *pos = EINA_POSITION2D(0, 0);
if (!e->default_seat) return EINA_FALSE;
if (!seat)
{
break;
if (child)
*pos = efl_input_pointer_position_get(child);
+
eina_iterator_free(it);
return !!child;
}