From fa7a9a604ee9f12dbfa63950adc0122880c092b0 Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Thu, 21 Jun 2012 09:41:50 -0400 Subject: [PATCH] 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 --- libselinux/utils/avcstat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libselinux/utils/avcstat.c b/libselinux/utils/avcstat.c index 7239ef2a..73432f22 100644 --- a/libselinux/utils/avcstat.c +++ b/libselinux/utils/avcstat.c @@ -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)