Fix compilation failure on Trusty

This commit is contained in:
Arun Prakash Jana 2019-02-19 16:26:36 +05:30
parent 5404988bf9
commit 89f0ba8fb4
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -4221,7 +4221,8 @@ 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) {