aboutsummaryrefslogtreecommitdiffstats
path: root/main/threadstorage.c
diff options
context:
space:
mode:
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 b4d38c045..b43568e08 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;