aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-11-25 19:52:52 +0200
committerRiccardo Spagni <ric@spagni.net>2017-11-25 19:52:52 +0200
commita7211b5a0717ca78ac794ff70afa4048df39135d (patch)
treed0d7080b132575df99f4868e360041c95a63719c /src/simplewallet
parentMerge pull request #2817 (diff)
parentsimplewallet: translate ring size 0 to mixin 0 (default values) (diff)
downloadmonero-a7211b5a0717ca78ac794ff70afa4048df39135d.tar.xz
Merge pull request #2822
93c33985 simplewallet: translate ring size 0 to mixin 0 (default values) (moneromooo-monero)
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index ff5255a80..bbcfa242c 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -634,7 +634,7 @@ bool simple_wallet::set_default_ring_size(const std::vector<std::string> &args/*
const auto pwd_container = get_and_verify_password();
if (pwd_container)
{
- m_wallet->default_mixin(ring_size - 1);
+ m_wallet->default_mixin(ring_size > 0 ? ring_size - 1 : 0);
m_wallet->rewrite(m_wallet_file, pwd_container->password());
}
return true;