From ab61fefa275656266f5f5ed55697c019dccd5fd7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 29 Jul 2013 13:15:58 +0200 Subject: [PATCH] Use memset() to zero sigaction struct. --- src/tlsproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tlsproxy.c b/src/tlsproxy.c index 2d2ea1e..ea0578b 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -107,8 +107,8 @@ int main(int argc, char **argv) { return EXIT_FAILURE; } + memset(&action, 0, sizeof(action)); sigemptyset(&action.sa_mask); - action.sa_flags = 0; #ifdef DEBUG /* Setup our SIGINT signal handler which allows a "normal" termination of * the server in DEBUG mode. */ -- 2.45.2