From ae938926a4fa1411c7ed12e2be9ef98b40a1e028 Mon Sep 17 00:00:00 2001 From: Vladimir Nikulichev Date: Mon, 30 Sep 2013 10:32:22 -0400 Subject: [PATCH] Fix: test_mutex.c uninitialized mutex Signed-off-by: Mathieu Desnoyers --- tests/test_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_mutex.c b/tests/test_mutex.c index 41b13d8..b493c4d 100644 --- a/tests/test_mutex.c +++ b/tests/test_mutex.c @@ -70,7 +70,7 @@ struct test_array { int a; }; -static pthread_mutex_t lock; +static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; static volatile int test_go, test_stop; -- 2.34.1