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