From e04ca79778a0d4531108803af4c45070f634d0ab Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 14 May 2013 16:24:46 -0700 Subject: [PATCH] Bugfix. --- src/cpp/ripple/RPCHandler.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index 92b066f8f6..d44d780716 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -1151,8 +1151,7 @@ Json::Value RPCHandler::doAccountOffers(Json::Value jvRequest, int& cost, Scoped if (as) { - Json::Value& jsonLines = jvResult["offers"]; - jsonLines = Json::arrayValue; + Json::Value& jsonLines = (jvResult["offers"] = Json::arrayValue); AccountItems offers(raAccount.getAccountID(), lpLedger, AccountItem::pointer(new Offer())); BOOST_FOREACH(AccountItem::ref item, offers.getItems()) @@ -1163,8 +1162,7 @@ Json::Value RPCHandler::doAccountOffers(Json::Value jvRequest, int& cost, Scoped STAmount takerGets = offer->getTakerGets(); //RippleAddress account = offer->getAccount(); - Json::Value& obj = jsonLines.append(obj); - obj = Json::Value(Json::objectValue); + Json::Value& obj = jsonLines.append(Json::objectValue); //obj["account"] = account.humanAccountID(); takerPays.setJson(obj["taker_pays"]);