Code cleanup
This commit is contained in:
parent
031e5fe38e
commit
1768cc2b5b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user