mirror of
https://github.com/DaveGamble/cJSON
synced 2025-05-02 08:07:56 +00:00
Remove always true condition in cJSON.c (#539)
This commit is contained in:
parent
7b6645794d
commit
9226e4ed8c
6
cJSON.c
6
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…
Reference in New Issue
Block a user