diff options
author | Lev Serebryakov <blacklion+git@gmail.com> | 2017-11-21 02:13:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-21 02:13:44 +0300 |
commit | 99151ed31dd7bfbb7510c077c02fec88c0215e14 (patch) | |
tree | 2da79cc74bdf740bda0f5894a71a10cb46ba53ef /xmrstak/misc/executor.cpp | |
parent | 79154f76defa627255891888f4dd62453194fc2c (diff) | |
download | xmr-stak-99151ed31dd7bfbb7510c077c02fec88c0215e14.zip xmr-stak-99151ed31dd7bfbb7510c077c02fec88c0215e14.tar.gz |
Fix uninitialized memory accces
Uninitialized memory access is UB in C/C++, fix it.
Diffstat (limited to 'xmrstak/misc/executor.cpp')
-rw-r--r-- | xmrstak/misc/executor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp index cccfca7..676dac7 100644 --- a/xmrstak/misc/executor.cpp +++ b/xmrstak/misc/executor.cpp @@ -459,6 +459,7 @@ void executor::on_miner_result(size_t pool_id, job_result& oResult) void disable_sigpipe() { struct sigaction sa; + memset(&sa, 0, sizeof(sa)); sa.sa_handler = SIG_IGN; sa.sa_flags = 0; if (sigaction(SIGPIPE, &sa, 0) == -1) |