aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index f69216f..02c53fa 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4222,8 +4222,7 @@ int main(int argc, char *argv[])
cfg.restrict0b = 1;
/* Ignore/handle certain signals */
- struct sigaction act;
- memset(&act, 0, sizeof(act));
+ struct sigaction act = {};
act.sa_sigaction = &sigint_handler;
act.sa_flags = SA_SIGINFO;
if (sigaction(SIGINT, &act, NULL) < 0) {