From 468588e3a0e7aedab3009d62f466057bd31d2c99 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 30 May 2013 11:25:34 -0700 Subject: [PATCH] Set default alphabet if not specified. --- modules/ripple_data/crypto/ripple_Base58.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ripple_data/crypto/ripple_Base58.cpp b/modules/ripple_data/crypto/ripple_Base58.cpp index 47361c74df..fc0fbb0baa 100644 --- a/modules/ripple_data/crypto/ripple_Base58.cpp +++ b/modules/ripple_data/crypto/ripple_Base58.cpp @@ -158,6 +158,8 @@ bool Base58::decode (const std::string& str, std::vector& vchRet) bool Base58::decodeWithCheck (const char* psz, std::vector& vchRet, const char* pAlphabet) { + if (pAlphabet == NULL) + pAlphabet = s_currentAlphabet; if (!decode (psz, vchRet, pAlphabet)) return false; if (vchRet.size() < 4)