diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp index cccfca750cc2739fa62144c176458d7a22af34f0..676dac70ebfc85cc5546468a993ae0b021f635e2 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)