summaryrefslogtreecommitdiff
path: root/main/lock.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2011-04-20 05:28:36 +0000
committerTerry Wilson <twilson@digium.com>2011-04-20 05:28:36 +0000
commit632cd26411022bc1fc6a6881657577a5d7c14321 (patch)
tree45b8c854664a083d6211d507f3abeeefc475aaf2 /main/lock.c
parent02821fc5b40192c21d0fb1f68e45481df98879ba (diff)
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
Diffstat (limited to 'main/lock.c')
-rw-r--r--main/lock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/lock.c b/main/lock.c
index 33e3345f1..df7940b6f 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)) {