projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83615dc
)
initialize on declaration
author
Arun Prakash Jana <engineerarun@gmail.com>
Sat, 9 Feb 2019 00:33:24 +0000 (06:03 +0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Sat, 9 Feb 2019 00:33:24 +0000 (06:03 +0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index f69216ff8f9d5b094c8ae51d8da764d0c5b653e8..02c53fa082518a4438a0e93d30410c36088150a3 100644
(file)
--- 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) {