mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-21 06:18:34 +02:00
Fix uninitialized memory accces
Uninitialized memory access is UB in C/C++, fix it.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user