summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-12-15 14:26:16 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-15 11:06:50 -0500
commitdad9075f4bbe37ecc5d1c91541534d40c5a2becd (patch)
tree2f68eaf7789f903a36b68cc889053d8736488ba9
parent5d6b7b93c778e22133f889690c3863c305c1e03f (diff)
downloadsssd-dad9075f4bbe37ecc5d1c91541534d40c5a2becd.tar.gz
sssd-dad9075f4bbe37ecc5d1c91541534d40c5a2becd.tar.xz
sssd-dad9075f4bbe37ecc5d1c91541534d40c5a2becd.zip
Fix uninitialized value error in main() in stress-tests.c
https://fedorahosted.org/sssd/ticket/732
-rw-r--r--src/tests/stress-tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/stress-tests.c b/src/tests/stress-tests.c
index b645c25c1..5075348e1 100644
--- a/src/tests/stress-tests.c
+++ b/src/tests/stress-tests.c
@@ -274,6 +274,7 @@ int main(int argc, const char *argv[])
/* Reap the children in a handler asynchronously so we can
* somehow protect against too many processes */
+ memset(&action, 0, sizeof(action));
action.sa_handler = child_handler;
sigemptyset(&action.sa_mask);
sigaddset(&action.sa_mask, SIGCHLD);