diff options
author | mikezackles <mikezackles@gmail.com> | 2014-07-17 19:23:49 -0400 |
---|---|---|
committer | mikezackles <mikezackles@gmail.com> | 2014-07-17 19:23:49 -0400 |
commit | 905b67bc790a09940bc22a4f199516b2b0157cdd (patch) | |
tree | d616ea77f177a5e412022b74122acf62320e5a03 /src/simplewallet | |
parent | Merge pull request #56 from tewinget/master (diff) | |
parent | Fix thread count argument handling in simplewallet (diff) | |
download | monero-905b67bc790a09940bc22a4f199516b2b0157cdd.tar.xz |
Merge pull request #63 from mikezackles/bytecoin_for_merge
Misc fixes from bytecoin
Diffstat (limited to 'src/simplewallet')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 8ceb583be..cbd682e78 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 |