From: Vladimir Nikulichev Date: Mon, 30 Sep 2013 14:32:22 +0000 (-0400) Subject: Fix: test_mutex.c uninitialized mutex X-Git-Tag: v0.9.0~142 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f61dfd97f545ebbc45fafd96b57bdc6eb655716d;p=userspace-rcu.git Fix: test_mutex.c uninitialized mutex Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/benchmark/test_mutex.c b/tests/benchmark/test_mutex.c index 255acfc..919654d 100644 --- a/tests/benchmark/test_mutex.c +++ b/tests/benchmark/test_mutex.c @@ -52,7 +52,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;