diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-09 06:03:24 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-09 06:03:24 +0530 |
commit | 7b542d0a45d035e9b415d3e6308f74c066ad2382 (patch) | |
tree | 50f2279c3b91adc2097161e7ee1f0e3c1887587e /src | |
parent | 83615dc72b38b857749081192cff02e0e12321ef (diff) | |
download | nnn-7b542d0a45d035e9b415d3e6308f74c066ad2382.tar.gz |
initialize on declaration
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) { |