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/simplewallet.cpp | |
| parent | c6ffd810aff30c321a411f47544584ab6522713f (diff) | |
| parent | a016499a0e7a0d93d9253b63d4f2aef2e8441d67 (diff) | |
| download | monzero-core-905b67bc790a09940bc22a4f199516b2b0157cdd.tar.gz monzero-core-905b67bc790a09940bc22a4f199516b2b0157cdd.tar.xz monzero-core-905b67bc790a09940bc22a4f199516b2b0157cdd.zip | |
Merge pull request #63 from mikezackles/bytecoin_for_merge
Misc fixes from bytecoin
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
| -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 |
