Skip to content
Snippets Groups Projects
Commit 5da57b93 authored by psychocrypt's avatar psychocrypt
Browse files

fix access uninitialized value

fix #1906

If the currency provided by the user is not known by the miner we access an uninitialized value.

Add default values for member of `coinDescription`.
parent 9fe30b2b
No related branches found
No related tags found
No related merge requests found
......@@ -10,9 +10,9 @@ namespace xmrstak
{
struct coinDescription
{
xmrstak_algo algo;
xmrstak_algo algo_root;
uint8_t fork_version;
xmrstak_algo algo = xmrstak_algo::invalid_algo;
xmrstak_algo algo_root = xmrstak_algo::invalid_algo;
uint8_t fork_version = 0u;
coinDescription() = default;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment