mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 16:05:51 +00:00
Fix default alphabet parameter to not pass null
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user