]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Initialize track pointer
authorTerry Wilson <twilson@digium.com>
Wed, 20 Apr 2011 05:25:15 +0000 (05:25 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 20 Apr 2011 05:25:15 +0000 (05:25 +0000)
ast_reentrancy_init checks to see if it is NULL before initializing with calloc

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@314358 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/lock.c

index 33e3345f100150d9b26603ff1efbf2e6dc4811a3..df7940b6fff0a7edb17418636177050d4fb78d30 100644 (file)
@@ -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)) {