Code cleanup

This commit is contained in:
Pierre Pronchery 2009-08-02 03:02:23 +00:00
parent 031e5fe38e
commit 1768cc2b5b

View File

@ -60,10 +60,7 @@ int object_resize(Object ** object, size_t size)
void * p;
if((p = realloc(*object, size)) == NULL)
{
error_set_code(1, "%s", strerror(errno));
return 1;
}
return error_set_code(1, "%s", strerror(errno));
*object = p;
#ifdef DEBUG
fprintf(stderr, "DEBUG: %s(&%p, %zu) => %p\n", __func__, *object, size,