Skip to content

Commit a09bd6a

Browse files
authored
Swap calloc(3) argument order to match parameter names
1 parent 69b34af commit a09bd6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sarray2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ PRIVATE void SparseArrayInsert(SparseArray * sarray, uint32_t index, void *value
183183

184184
PRIVATE SparseArray *SparseArrayCopy(SparseArray * sarray)
185185
{
186-
SparseArray *copy = calloc(sizeof(SparseArray), 1);
186+
SparseArray *copy = calloc(1, sizeof(SparseArray));
187187
memcpy(copy, sarray, sizeof(SparseArray));
188188
copy->refCount = 1;
189189
// If the sarray has children, increase their refcounts and link them

0 commit comments

Comments
 (0)