[asterisk-commits] twilson: branch 1.8 r314358 - /branches/1.8/main/lock.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Apr 20 00:25:19 CDT 2011
Author: twilson
Date: Wed Apr 20 00:25:15 2011
New Revision: 314358
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=314358
Log:
Initialize track pointer
ast_reentrancy_init checks to see if it is NULL before initializing with calloc
Modified:
branches/1.8/main/lock.c
Modified: branches/1.8/main/lock.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/lock.c?view=diff&rev=314358&r1=314357&r2=314358
==============================================================================
--- branches/1.8/main/lock.c (original)
+++ branches/1.8/main/lock.c Wed Apr 20 00:25:15 2011
@@ -47,6 +47,7 @@
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)) {
More information about the asterisk-commits
mailing list