eina: let's check for returned value of realloc.

CID 1039689.
This commit is contained in:
Cedric BAIL 2014-06-05 03:20:56 +02:00
parent b67860e98f
commit 8f817ff4a0
1 changed files with 1 additions and 1 deletions

View File

@ -606,7 +606,7 @@ eina_inarray_remove_at(Eina_Inarray *array, unsigned int position)
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--;
return EINA_TRUE;
}