mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix compilation failure on Trusty
This commit is contained in:
parent
5404988bf9
commit
89f0ba8fb4
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue