From 8f7e4abbe6d6c814f5f3c069e5b3067920689dbe Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Tue, 2 Jun 2015 11:41:00 +0200 Subject: [PATCH] fix rpc batching univalue issue --- src/rpcserver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index 18e74e03cf1..a92ec0b29b2 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -889,7 +889,7 @@ static UniValue JSONRPCExecOne(const UniValue& req) static string JSONRPCExecBatch(const UniValue& vReq) { - UniValue ret; + UniValue ret(UniValue::VARR); for (unsigned int reqIdx = 0; reqIdx < vReq.size(); reqIdx++) ret.push_back(JSONRPCExecOne(vReq[reqIdx]));