From: Mark Michelson Date: Fri, 22 Aug 2008 19:45:19 +0000 (+0000) Subject: Fix compilation when DEBUG_THREAD_LOCALS is selected X-Git-Tag: 1.4.22-rc3~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28b9f5b384e10c81bed29b745befea198a351191;p=thirdparty%2Fasterisk.git Fix compilation when DEBUG_THREAD_LOCALS is selected (closes issue #13298) Reported by: snuffy Patches: bug13298_20080822.diff uploaded by snuffy (license 35) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@139553 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/threadstorage.h b/include/asterisk/threadstorage.h index 799a86332c..59bd8cd72b 100644 --- a/include/asterisk/threadstorage.h +++ b/include/asterisk/threadstorage.h @@ -159,7 +159,7 @@ void *__ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size, co if (!(buf = ast_calloc(1, init_size))) return NULL; pthread_setspecific(ts->key, buf); - __ast_threadstorage_object_add(ts->key, init_size, file, function, line); + __ast_threadstorage_object_add(&ts->key, init_size, file, function, line); } return buf;