libselinux: utils: avcstat: clear sa_mask set

We were leaving random stack garbage in sa.sa_mask.  Clear it the way
one should.  (spotted by coveriety)

Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
Dan Walsh 2012-06-21 09:41:50 -04:00 committed by Eric Paris
parent 873c176651
commit fa7a9a604e
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ int main(int argc, char **argv)
sa.sa_handler = sighandler;
sa.sa_flags = SA_RESTART;
sigemptyset(&sa.sa_mask);
i = sigaction(SIGWINCH, &sa, NULL);
if (i < 0)