From 6a349d0b28c77a542d27283599b0847e54b70e5c Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Thu, 26 Jun 2014 11:30:14 +0900 Subject: [PATCH] Fixed zero size string in the array problem. --- include/msgpack/unpack.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/msgpack/unpack.hpp b/include/msgpack/unpack.hpp index 735515c5..68f38906 100644 --- a/include/msgpack/unpack.hpp +++ b/include/msgpack/unpack.hpp @@ -376,8 +376,10 @@ public: int ret = push_proc(obj, off); if (ret != 0) return ret; } - cs_ = ACS_STR_VALUE; - fixed_trail_again = true; + else { + cs_ = ACS_STR_VALUE; + fixed_trail_again = true; + } } else if(0x90 <= selector && selector <= 0x9f) { // FixArray int ret = push_aggregate(