Merged revisions 314358 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Wed, 20 Apr 2011 05:28:36 +0000 (05:28 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 20 Apr 2011 05:28:36 +0000 (05:28 +0000)
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: https://origsvn.digium.com/svn/asterisk/trunk@314359 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/lock.c

index 33e3345..df7940b 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)) {