fix warning: control reaches end of non-void function [-Wreturn-type]
authorGiel van Schijndel <me@mortis.eu>
Wed, 13 Jul 2011 11:43:50 +0000 (13:43 +0200)
committerGiel van Schijndel <me@mortis.eu>
Wed, 13 Jul 2011 12:25:45 +0000 (14:25 +0200)
Signed-off-by: Giel van Schijndel <me@mortis.eu>

src/wallet.cpp

index a60b0b4..68283c9 100644 (file)
@@ -23,6 +23,7 @@ bool CWallet::AddKey(const CKey& key)
         return true;
     if (!IsCrypted())
         return CWalletDB(strWalletFile).WriteKey(key.GetPubKey(), key.GetPrivKey());
+    return true;
 }
 
 bool CWallet::AddCryptedKey(const vector<unsigned char> &vchPubKey, const vector<unsigned char> &vchCryptedSecret)