From: divverent Date: Mon, 6 May 2013 09:50:57 +0000 (+0000) Subject: fix a possible pthread crash X-Git-Tag: xonotic-v0.7.0~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eeb7bca2d709edc1ac1a77a4e5d5b60d003431f8;p=xonotic%2Fdarkplaces.git fix a possible pthread crash git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11947 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6765d73ceb93553eef65c72f5f80f71f13771d12 --- diff --git a/thread_pthread.c b/thread_pthread.c index e86b2c38..ec1f9177 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -31,6 +31,7 @@ void *_Thread_CreateMutex(const char *filename, int fileline) Sys_PrintfToTerminal("%p mutex create %s:%i\n" , mutexp, filename, fileline); #endif #ifdef THREADRECURSIVE + pthread_mutexattr_init(&attr); pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); pthread_mutex_init(mutexp, &attr); #else