diff options
author | Robert <roby_p97@yahoo.com> | 2020-04-02 19:28:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 19:28:55 +0200 |
commit | 5d9b8e0fef9dd7ebdc393e109cd3c646efb5593d (patch) | |
tree | d315072a6b2a284c79cba95d09a1ffb55e8e8ec5 /arraylist.c | |
parent | 56f81811c2090c3d1a48523e018ed2eca7a58217 (diff) | |
download | json-c-5d9b8e0fef9dd7ebdc393e109cd3c646efb5593d.tar.gz |
Changed order of calloc args to match stdlib (2)
Although it is currently working, it's worth to stick with the stdlib definition to avoid further problems
Diffstat (limited to 'arraylist.c')
-rw-r--r-- | arraylist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arraylist.c b/arraylist.c index 8a88ed1..3441ce1 100644 --- a/arraylist.c +++ b/arraylist.c @@ -46,7 +46,7 @@ array_list_new(array_list_free_fn *free_fn) arr->size = ARRAY_LIST_DEFAULT_SIZE; arr->length = 0; arr->free_fn = free_fn; - if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { + if(!(arr->array = (void**)calloc(arr->size, sizeof(void*)))) { free(arr); return NULL; } |