diff --git a/tools/regression/pthread/cv_cancel1/cv_cancel1.c b/tools/regression/pthread/cv_cancel1/cv_cancel1.c index 22d82185e7e0..cacad44c2280 100644 --- a/tools/regression/pthread/cv_cancel1/cv_cancel1.c +++ b/tools/regression/pthread/cv_cancel1/cv_cancel1.c @@ -31,8 +31,8 @@ #define NLOOPS 10 -pthread_mutex_t m; -pthread_cond_t cv; +pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; +pthread_cond_t cv = PTHREAD_COND_INITIALIZER; int wake; int stop;