diff options
| author | INADA Naoki <songofacandy@gmail.com> | 2012-10-12 05:48:17 -0700 |
|---|---|---|
| committer | INADA Naoki <songofacandy@gmail.com> | 2012-10-12 05:48:17 -0700 |
| commit | 8f822526870c3775d9c8a38514c2c6c3d2ce4e5f (patch) | |
| tree | e8896d1a6e740edd28551c6f0320f356b58c512e /msgpack/unpack_template.h | |
| parent | d5f99959cc2ec393c13fc9e44714351272bac7fc (diff) | |
| parent | cf89f18be7614d6d55bb9eb7e9bf0e10d42a8508 (diff) | |
| download | msgpack-python-8f822526870c3775d9c8a38514c2c6c3d2ce4e5f.tar.gz | |
Merge pull request #29 from drednout/master
Fix for an issue #28
Diffstat (limited to 'msgpack/unpack_template.h')
| -rw-r--r-- | msgpack/unpack_template.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/msgpack/unpack_template.h b/msgpack/unpack_template.h index 7d07601..8a57f0d 100644 --- a/msgpack/unpack_template.h +++ b/msgpack/unpack_template.h @@ -347,7 +347,7 @@ _push: if(construct_cb(_array_item)(user, c->count, &c->obj, obj) < 0) { goto _failed; } if(++c->count == c->size) { obj = c->obj; - construct_cb(_array_end)(user, &obj); + if (construct_cb(_array_end)(user, &obj) < 0) { goto _failed; } --top; /*printf("stack pop %d\n", top);*/ goto _push; @@ -361,7 +361,7 @@ _push: if(construct_cb(_map_item)(user, c->count, &c->obj, c->map_key, obj) < 0) { goto _failed; } if(++c->count == c->size) { obj = c->obj; - construct_cb(_map_end)(user, &obj); + if (construct_cb(_map_end)(user, &obj) < 0) { goto _failed; } --top; /*printf("stack pop %d\n", top);*/ goto _push; |
