Regular expressions are very Zen.

It always matches something, even if that something is nothing. Nothing is a form of something.
This commit is contained in:
JoelKatz
2013-02-01 15:36:07 -08:00
parent bbc9ec1931
commit 6f619835e2

View File

@@ -104,7 +104,7 @@ void UniqueNodeList::trustedLoad()
{
RippleAddress a = RippleAddress::createNodePublic(match[1]);
if (a.isValid())
sClusterNodes.insert(std::make_pair(a, (match.size() > 1) ? match[2] : std::string("")));
sClusterNodes.insert(std::make_pair(a, match[2]));
}
else
cLog(lsWARNING) << "Entry in cluster list invalid: '" << c << "'";