projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5404988
)
Fix compilation failure on Trusty
author
Arun Prakash Jana <engineerarun@gmail.com>
Tue, 19 Feb 2019 10:56:36 +0000 (16:26 +0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Tue, 19 Feb 2019 10:56:36 +0000 (16:26 +0530)
src/nnn.c
patch
|
blob
|
history
diff --git
a/src/nnn.c
b/src/nnn.c
index bcfb5ec6b806b29e38a42fb24a75ff1e4363f0b4..9348a879f2dd67f1e7fe182a20450914a484956d 100644
(file)
--- a/
src/nnn.c
+++ b/
src/nnn.c
@@
-4221,7
+4221,8
@@
int main(int argc, char *argv[])
cfg.restrict0b = 1;
/* Ignore/handle certain signals */
- struct sigaction act = {};
+ struct sigaction act;
+ memset(&act, 0, sizeof(act));
act.sa_sigaction = &sigint_handler;
act.sa_flags = SA_SIGINFO;
if (sigaction(SIGINT, &act, NULL) < 0) {