Commit 8eec89ec authored by Hardy Simpson's avatar Hardy Simpson

code: calloc argument sequence

parent ed0995d0
......@@ -38,7 +38,7 @@ zc_arraylist_t *zc_arraylist_new(zc_arraylist_del_fn del)
/* this could be NULL */
a_list->del = del;
a_list->array = (void **)calloc(sizeof(void *), a_list->size);
a_list->array = (void **)calloc(a_list->size, sizeof(void *));
if (!a_list->array) {
zc_error("calloc fail, errno[%d]", errno);
free(a_list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment