diff --git a/main/threadstorage.c b/main/threadstorage.c index b4d38c045a..b43568e080 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;