mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
fix initialize pointer
This commit is contained in:
parent
6b5b76b0c9
commit
d43921823e
1 changed files with 1 additions and 0 deletions
|
|
@ -560,6 +560,7 @@ unpackObject z dat =
|
|||
allocaBytes (#size msgpack_object) $ \ptr ->
|
||||
BS.useAsCStringLen dat $ \(str, len) ->
|
||||
alloca $ \poff -> do
|
||||
poke poff 0
|
||||
ret <- msgpack_unpack str (fromIntegral len) poff z ptr
|
||||
case ret of
|
||||
(#const MSGPACK_UNPACK_SUCCESS) -> do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue