mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-21 15:10:01 +01:00
fix msgpack_sbuffer_release
This commit is contained in:
parent
6fda01111e
commit
879c70f93a
@ -70,9 +70,9 @@ static inline int msgpack_sbuffer_write(void* data, const char* buf, unsigned in
|
|||||||
static inline char* msgpack_sbuffer_release(msgpack_sbuffer* sbuf)
|
static inline char* msgpack_sbuffer_release(msgpack_sbuffer* sbuf)
|
||||||
{
|
{
|
||||||
char* tmp = sbuf->data;
|
char* tmp = sbuf->data;
|
||||||
sbuf->data = NULL;
|
|
||||||
sbuf->size = 0;
|
sbuf->size = 0;
|
||||||
sbuf->alloc = NULL;
|
sbuf->data = NULL;
|
||||||
|
sbuf->alloc = 0;
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user