diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-10-22 21:43:05 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-10-22 21:43:05 +0100 |
commit | 6ce25cc8ce53e53aadb0f7a5be20759e2d398a7e (patch) | |
tree | 0a5534fbf65cf5d7c17c9e398c2d5eab9647f2b5 | |
parent | 5f6da2aaec32724df4a6b9d26f37e4a19e3112e1 (diff) | |
download | dynstr-6ce25cc8ce53e53aadb0f7a5be20759e2d398a7e.tar.gz |
Fix problem reported by valgrind by initializing sa_mask.
-rw-r--r-- | unittests.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests.c b/unittests.c index 4f19c8b..c1438ce 100644 --- a/unittests.c +++ b/unittests.c @@ -75,6 +75,7 @@ static int test_abort_handler_calls_abort(void) if (setjmp(env) == 0) { act.sa_handler = abort_handler; + sigemptyset(&act.sa_mask); act.sa_flags = 0; sigaction(SIGABRT, &act, &oldact); dynstr_set_malloc_error_handler(dynstr_malloc_error_abort); |