fix msgpack_sbuffer_release

This commit is contained in:
frsyuki 2009-03-01 01:13:31 +09:00
parent 6fda01111e
commit 879c70f93a

View File

@ -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)
{
char* tmp = sbuf->data;
sbuf->data = NULL;
sbuf->size = 0;
sbuf->alloc = NULL;
sbuf->data = NULL;
sbuf->alloc = 0;
return tmp;
}