mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Fix uninitialized memory usage (caught by Valgrind)
This commit is contained in:
parent
43e6d35b8f
commit
1c0f573489
@ -88,6 +88,7 @@ int initializePlatformSockets(void) {
|
|||||||
// Disable SIGPIPE signals to avoid us getting
|
// Disable SIGPIPE signals to avoid us getting
|
||||||
// killed when a socket gets an EPIPE error
|
// killed when a socket gets an EPIPE error
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
|
sigemptyset(&sa.sa_mask);
|
||||||
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user