Merged revisions 314358 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r314358 | twilson | 2011-04-19 22:25:15 -0700 (Tue, 19 Apr 2011) | 4 lines Initialize track pointer ast_reentrancy_init checks to see if it is NULL before initializing with calloc ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@314359 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
d7cf1dfda8
commit
34e574ed01
|
@ -47,6 +47,7 @@ int __ast_pthread_mutex_init(int tracking, const char *filename, int lineno, con
|
|||
int res;
|
||||
pthread_mutexattr_t attr;
|
||||
|
||||
t->track = NULL;
|
||||
#ifdef DEBUG_THREADS
|
||||
#if defined(AST_MUTEX_INIT_W_CONSTRUCTORS) && defined(CAN_COMPARE_MUTEX_TO_INIT_VALUE)
|
||||
if ((t->mutex) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
|
||||
|
|
Reference in New Issue