From: Terry Wilson Date: Wed, 20 Apr 2011 05:25:15 +0000 (+0000) Subject: Initialize track pointer X-Git-Tag: 1.8.5-rc1~11^2~212 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8713d9a5731a99b0fa875bd4cfd8231c3223afe9;p=thirdparty%2Fasterisk.git 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/branches/1.8@314358 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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)) {