aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-09 06:03:24 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-02-09 06:03:24 +0530
commit7b542d0a45d035e9b415d3e6308f74c066ad2382 (patch)
tree50f2279c3b91adc2097161e7ee1f0e3c1887587e /src
parent83615dc72b38b857749081192cff02e0e12321ef (diff)
downloadnnn-7b542d0a45d035e9b415d3e6308f74c066ad2382.tar.gz
initialize on declaration
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) {