initialize on declaration

This commit is contained in:
Arun Prakash Jana 2019-02-09 06:03:24 +05:30
parent 83615dc72b
commit 7b542d0a45
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 2 deletions

View File

@ -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) {