8000 fix zero length raw can't be decoded. (#236) · msgpack/msgpack-python@9934103 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9934103

Browse files
authored
fix zero length raw can't be decoded. (#236)
fix #234
1 parent 3a09885 commit 9934103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack/unpack_template.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static inline int unpack_execute(unpack_context* ctx, const char* data, Py_ssize
8282

8383
const unsigned char* p = (unsigned char*)data + *off;
8484
const unsigned char* const pe = (unsigned char*)data + len;
85-
const void* n = NULL;
85+
const void* n = p;
8686

8787
unsigned int trail = ctx->trail;
8888
unsigned int cs = ctx->cs;

0 commit comments

Comments
 (0)
0