mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Initialize unassigned variable bConsumed.
* Assigned in the code, but only to false. * Someday will get assigned to true.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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 ());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user