From: Vladimir Nikulichev Date: Mon, 30 Sep 2013 14:32:22 +0000 (-0400) Subject: Fix: test_mutex.c uninitialized mutex X-Git-Tag: v0.8.1~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=661fb526fdecba782d96015b503ab47ba95d4545;p=urcu.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;