mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
initialize on declaration
This commit is contained in:
parent
83615dc72b
commit
7b542d0a45
|
@ -4222,8 +4222,7 @@ int main(int argc, char *argv[])
|
||||||
cfg.restrict0b = 1;
|
cfg.restrict0b = 1;
|
||||||
|
|
||||||
/* Ignore/handle certain signals */
|
/* Ignore/handle certain signals */
|
||||||
struct sigaction act;
|
struct sigaction act = {};
|
||||||
memset(&act, 0, sizeof(act));
|
|
||||||
act.sa_sigaction = &sigint_handler;
|
act.sa_sigaction = &sigint_handler;
|
||||||
act.sa_flags = SA_SIGINFO;
|
act.sa_flags = SA_SIGINFO;
|
||||||
if (sigaction(SIGINT, &act, NULL) < 0) {
|
if (sigaction(SIGINT, &act, NULL) < 0) {
|
||||||
|
|
Loading…
Reference in a new issue