From 83615dc72b38b857749081192cff02e0e12321ef Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 9 Feb 2019 05:18:09 +0530 Subject: [PATCH] Fix build break --- src/nnn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index 6a83e8c..f69216f 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4222,7 +4222,8 @@ int main(int argc, char *argv[]) cfg.restrict0b = 1; /* Ignore/handle certain signals */ - struct sigaction act = {0}; + struct sigaction act; + memset(&act, 0, sizeof(act)); act.sa_sigaction = &sigint_handler; act.sa_flags = SA_SIGINFO; if (sigaction(SIGINT, &act, NULL) < 0) {