mirror of
https://github.com/DaveGamble/cJSON.git
synced 2025-01-14 03:18:00 +08:00
Remove always true condition in cJSON.c (#539)
This commit is contained in:
parent
7b6645794d
commit
9226e4ed8c
4
cJSON.c
4
cJSON.c
@ -511,10 +511,8 @@ static unsigned char* ensure(printbuffer * const p, size_t needed)
|
|||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (newbuffer)
|
|
||||||
{
|
|
||||||
memcpy(newbuffer, p->buffer, p->offset + 1);
|
memcpy(newbuffer, p->buffer, p->offset + 1);
|
||||||
}
|
|
||||||
p->hooks.deallocate(p->buffer);
|
p->hooks.deallocate(p->buffer);
|
||||||
}
|
}
|
||||||
p->length = newsize;
|
p->length = newsize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user