forked from enlightenment/efl
eina: let's check for returned value of realloc.
CID 1039689.
This commit is contained in:
parent
b67860e98f
commit
8f817ff4a0
|
@ -606,7 +606,7 @@ eina_inarray_remove_at(Eina_Inarray *array, unsigned int position)
|
||||||
memmove(p, p + sz, (array->len - position - 1) * sz);
|
memmove(p, p + sz, (array->len - position - 1) * sz);
|
||||||
}
|
}
|
||||||
|
|
||||||
_eina_inarray_resize(array, array->len - 1);
|
if (!_eina_inarray_resize(array, array->len - 1)) return EINA_FALSE; /* should never fail as we reduce the buffer, but just let make compiler happy */
|
||||||
array->len--;
|
array->len--;
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue