From 632cd26411022bc1fc6a6881657577a5d7c14321 Mon Sep 17 00:00:00 2001
From: Terry Wilson <twilson@digium.com>
Date: Wed, 20 Apr 2011 05:28:36 +0000
Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/trunk@314359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 main/lock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main/lock.c b/main/lock.c
index 33e3345f10..df7940b6ff 100644
--- a/main/lock.c
+++ b/main/lock.c
@@ -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)) {
-- 
GitLab