From: Vladimir Nikulichev Date: Mon, 30 Sep 2013 14:32:22 +0000 (-0400) Subject: Fix: test_mutex.c uninitialized mutex X-Git-Tag: v0.7.9~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ae938926a4fa1411c7ed12e2be9ef98b40a1e028;p=userspace-rcu.git Fix: test_mutex.c uninitialized mutex Signed-off-by: Mathieu Desnoyers --- 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;