diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2017-12-21 20:46:14 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-21 20:46:14 +0900 |
commit | 99341035f2f7f7b9d708c73f59e92277579abb0c (patch) | |
tree | 7afabd87ebdf8fb390aaa6053ce14227af8bd526 /msgpack/unpack_template.h | |
parent | 3a098851bea500ef1ffde856a60d80ddab230dee (diff) | |
download | msgpack-python-99341035f2f7f7b9d708c73f59e92277579abb0c.tar.gz |
fix zero length raw can't be decoded. (#236)
fix #234
Diffstat (limited to 'msgpack/unpack_template.h')
-rw-r--r-- | msgpack/unpack_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/unpack_template.h b/msgpack/unpack_template.h index e1e08fe..525dea2 100644 --- a/msgpack/unpack_template.h +++ b/msgpack/unpack_template.h @@ -82,7 +82,7 @@ static inline int unpack_execute(unpack_context* ctx, const char* data, Py_ssize const unsigned char* p = (unsigned char*)data + *off; const unsigned char* const pe = (unsigned char*)data + len; - const void* n = NULL; + const void* n = p; unsigned int trail = ctx->trail; unsigned int cs = ctx->cs; |