Fix default alphabet parameter to not pass null

This commit is contained in:
Vinnie Falco
2013-05-30 12:12:11 -07:00
parent aef0a84e07
commit 3983c76adb
2 changed files with 3 additions and 3 deletions

View File

@@ -158,8 +158,8 @@ bool Base58::decode (const std::string& str, std::vector<unsigned char>& vchRet)
bool Base58::decodeWithCheck (const char* psz, std::vector<unsigned char>& vchRet, const char* pAlphabet)
{
if (pAlphabet == NULL)
pAlphabet = s_currentAlphabet;
assert (pAlphabet != NULL);
if (!decode (psz, vchRet, pAlphabet))
return false;
if (vchRet.size() < 4)

View File

@@ -71,7 +71,7 @@ public:
std::string humanAccountID() const;
bool setAccountID(const std::string& strAccountID, const char* pAlphabet=0);
bool setAccountID(const std::string& strAccountID, const char* pAlphabet=Base58::getCurrentAlphabet ());
void setAccountID(const uint160& hash160In);
static RippleAddress createAccountID(const std::string& strAccountID)