From fb18dd6e52671373229cf4092945e6d44d4b13e3 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Wed, 23 Mar 2011 16:14:28 +0100 Subject: [PATCH] [Aggregator] Initialise sa_flags valgrind complained about sa_flags being used uninitialised. --- owlps-aggregator/owlps-aggregatord.c | 1 + 1 file changed, 1 insertion(+) diff --git a/owlps-aggregator/owlps-aggregatord.c b/owlps-aggregator/owlps-aggregatord.c index fe2ea52..b507cbc 100644 --- a/owlps-aggregator/owlps-aggregatord.c +++ b/owlps-aggregator/owlps-aggregatord.c @@ -32,6 +32,7 @@ int main(int argc, char **argv) initialise_configuration(argc, argv) ; /* Set up signal handlers */ + action.sa_flags = 0 ; sigemptyset(&action.sa_mask) ; action.sa_handler = owl_sigint_handler ; sigaction(SIGINT, &action, NULL) ;