aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorZachary Michaels <mikezackles@gmail.com>2014-07-01 13:01:44 -0400
committerZachary Michaels <mikezackles@gmail.com>2014-07-01 14:57:27 -0400
commita016499a0e7a0d93d9253b63d4f2aef2e8441d67 (patch)
tree866267a8e962cbf0a1c3cc12f481bff45e034e3f /src/simplewallet/simplewallet.cpp
parentMatch empty RPC request with other requests (diff)
downloadmonero-a016499a0e7a0d93d9253b63d4f2aef2e8441d67.tar.xz
Fix thread count argument handling in simplewallet
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 6af0de9f9..66b76aa1b 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -499,9 +499,9 @@ bool simple_wallet::start_mining(const std::vector<std::string>& args)
}
else if (1 == args.size())
{
- uint16_t num;
+ uint16_t num = 1;
ok = string_tools::get_xtype_from_string(num, args[0]);
- ok &= (1 <= num && num <= max_mining_threads_count);
+ ok = ok && (1 <= num && num <= max_mining_threads_count);
req.threads_count = num;
}
else