c_str() isn't needed here
authorCryptoManiac <balthazar@yandex.ru>
Tue, 8 Mar 2016 17:42:26 +0000 (20:42 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Tue, 8 Mar 2016 17:42:26 +0000 (20:42 +0300)
src/walletdb.cpp

index bc35846..1a90f74 100644 (file)
@@ -838,7 +838,7 @@ bool DumpWallet(CWallet* pwallet, const string& strDest)
             if (!pwallet->GetKey(keyid, key))
                 continue;
             CSecret secret = key.GetSecret(IsCompressed);
-            file << CBitcoinSecret(secret, IsCompressed).ToString().c_str();
+            file << CBitcoinSecret(secret, IsCompressed).ToString();
             if (pwallet->mapAddressBook.count(keyid))
                 file << strprintf(" %s label=%s # addr=%s\n", strTime.c_str(), EncodeDumpString(pwallet->mapAddressBook[keyid]).c_str(), strAddr.c_str());
             else if (setKeyPool.count(keyid))