summaryrefslogtreecommitdiff
path: root/msgpack
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2012-12-22 13:04:39 +0900
committerINADA Naoki <inada-n@klab.com>2012-12-22 13:08:46 +0900
commit833b85f1734a1f66ffc105f7272e402d68e661ed (patch)
treed99bf896085a1112d6f71a09c561437cd5296264 /msgpack
parent647af23373c502c2b648ccd425686a89808f1599 (diff)
parent451631a11a5ed4bdd2334f1298b26fc4e9806729 (diff)
downloadmsgpack-python-833b85f1734a1f66ffc105f7272e402d68e661ed.tar.gz
Merge branch '0.2-maint' (fix #39)
Diffstat (limited to 'msgpack')
-rw-r--r--msgpack/unpack_template.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/unpack_template.h b/msgpack/unpack_template.h
index 8a57f0d..83b6918 100644
--- a/msgpack/unpack_template.h
+++ b/msgpack/unpack_template.h
@@ -146,7 +146,7 @@ msgpack_unpack_func(int, _execute)(msgpack_unpack_struct(_context)* ctx, const c
if(top >= MSGPACK_EMBED_STACK_SIZE) { goto _failed; } /* FIXME */ \
if(construct_cb(func)(user, count_, &stack[top].obj) < 0) { goto _failed; } \
if((count_) == 0) { obj = stack[top].obj; \
- construct_cb(func##_end)(user, &obj); \
+ if (construct_cb(func##_end)(user, &obj) < 0) { goto _failed; } \
goto _push; } \
stack[top].ct = ct_; \
stack[top].size = count_; \