diff options
author | Stef Walter <stef@thewalter.net> | 2013-07-17 08:03:38 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-18 07:56:01 +0200 |
commit | eb8f5859b1349f8147ba47a1da8032df192f2370 (patch) | |
tree | a2fab941c7e96f641f99805ed701bded9366b9e2 /p11-kit/tests | |
parent | ab1caffd9e09fd4d6ab92713de29436db0da6dea (diff) |
Fix various issues highlighted by coverity scanner
Among others fix possible usage of large stack allocation.
Diffstat (limited to 'p11-kit/tests')
-rw-r--r-- | p11-kit/tests/test-init.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 (); |