From eb8f5859b1349f8147ba47a1da8032df192f2370 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 17 Jul 2013 08:03:38 +0200 Subject: Fix various issues highlighted by coverity scanner Among others fix possible usage of large stack allocation. --- p11-kit/tests/test-init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'p11-kit/tests/test-init.c') diff --git a/p11-kit/tests/test-init.c b/p11-kit/tests/test-init.c index 76805ee..ebc0666 100644 --- a/p11-kit/tests/test-init.c +++ b/p11-kit/tests/test-init.c @@ -233,8 +233,11 @@ test_threaded_initialization (void) module.C_Finalize = mock_C_Finalize__threaded_race; memset (&data, 0, sizeof (data)); + + p11_mutex_lock (&race_mutex); initialization_count = 0; finalization_count = 0; + p11_mutex_unlock (&race_mutex); p11_lock (); -- cgit v1.1