From 1c0f573489df0cfa14c4fcb16633b10c7bcb0719 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 22 Jun 2015 21:07:07 -0700 Subject: [PATCH] Fix uninitialized memory usage (caught by Valgrind) --- limelight-common/PlatformSockets.c | 1 + 1 file changed, 1 insertion(+) diff --git a/limelight-common/PlatformSockets.c b/limelight-common/PlatformSockets.c index bc0e8bb..9b51e13 100644 --- a/limelight-common/PlatformSockets.c +++ b/limelight-common/PlatformSockets.c @@ -88,6 +88,7 @@ int initializePlatformSockets(void) { // Disable SIGPIPE signals to avoid us getting // killed when a socket gets an EPIPE error struct sigaction sa; + sigemptyset(&sa.sa_mask); sa.sa_handler = SIG_IGN; sa.sa_flags = 0; if (sigaction(SIGPIPE, &sa, 0) == -1) {