Initialize unassigned variable bConsumed.

* Assigned in the code, but only to false.
* Someday will get assigned to true.
This commit is contained in:
Tom Swirly
2014-05-20 15:00:03 -04:00
committed by Vinnie Falco
parent 74eb25f9b5
commit 9ad9845d69
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,6 @@ void pathNext (
// The next state is what is available in preference order.
// This is calculated when referenced accounts changed.
const unsigned int lastNodeIndex = pathState.vpnNodes.size () - 1;
pathState.bConsumed = false;
// YYY This clearing should only be needed for nice logging.

View File

@@ -112,6 +112,7 @@ public:
const STAmount& saSendMax)
: saInReq (saSendMax)
, saOutReq (saSend)
, bConsumed (false)
{
}
@@ -119,6 +120,7 @@ public:
bool bUnused)
: saInReq (psSrc.saInReq)
, saOutReq (psSrc.saOutReq)
, bConsumed (false)
{
}

View File

@@ -315,8 +315,7 @@ TER rippleCalculate (
<< " rate: "
<< STAmount::saFromRate (pspCur->uQuality)
<< " quality:" << pspCur->uQuality
<< " best: " << (iBest == pspCur->getIndex ())
<< " consumed: " << pspCur->bConsumed;
<< " best: " << (iBest == pspCur->getIndex ());
}
}