summaryrefslogtreecommitdiff
path: root/main/threadstorage.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-10-16 14:21:27 +0000
committerJoshua Colp <jcolp@digium.com>2007-10-16 14:21:27 +0000
commit3c33254f0ca462368ca10abff3daa0b581133ef7 (patch)
treea54b701fe550e70538687b0ab1bdb28f8c83d516 /main/threadstorage.c
parent65547b09b4d22051573444152dc5dfc140163a30 (diff)
Merged revisions 85818 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85818 | file | 2007-10-16 11:19:39 -0300 (Tue, 16 Oct 2007) | 6 lines Fix memory allocation issue in threadstorage. (closes issue #10995) Reported by: snuffy Patches: new-patch.diff uploaded by snuffy (license 35) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/threadstorage.c')
-rw-r--r--main/threadstorage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/threadstorage.c b/main/threadstorage.c
index de3e9e0df..7de7dad2b 100644
--- a/main/threadstorage.c
+++ b/main/threadstorage.c
@@ -56,7 +56,7 @@ void __ast_threadstorage_object_add(void *key, size_t len, const char *file, con
{
struct tls_object *to;
- if (!(to = ast_calloc(sizeof(*to), 1)))
+ if (!(to = ast_calloc(1, sizeof(*to))))
return;
to->key = key;