Skip to content
Snippets Groups Projects
Unverified Commit b3f7c805 authored by fireice-uk's avatar fireice-uk Committed by GitHub
Browse files

Merge pull request #193 from blacklion/patch-2

Fix uninitialized memory accces
parents 27b2704a 99151ed3
No related branches found
No related tags found
No related merge requests found
...@@ -459,6 +459,7 @@ void executor::on_miner_result(size_t pool_id, job_result& oResult) ...@@ -459,6 +459,7 @@ void executor::on_miner_result(size_t pool_id, job_result& oResult)
void disable_sigpipe() void disable_sigpipe()
{ {
struct sigaction sa; struct sigaction sa;
memset(&sa, 0, sizeof(sa));
sa.sa_handler = SIG_IGN; sa.sa_handler = SIG_IGN;
sa.sa_flags = 0; sa.sa_flags = 0;
if (sigaction(SIGPIPE, &sa, 0) == -1) if (sigaction(SIGPIPE, &sa, 0) == -1)
......
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