Commit Diff


commit - 7a4d2c244110a34fed1abc76faa9824c417d83dc
commit + 2de89b6b796bcedcc9ffad40aad86ae0e3d1ebd8
blob - 37547ec04aef0ab91edd82c764c5f166d94c0f0b
blob + 05f874b50048ad3da52155a75178a06d24c511e8
--- lib/object_idset.c
+++ lib/object_idset.c
@@ -58,7 +58,7 @@ got_object_idset_alloc(void)
 	if (set == NULL)
 		return NULL;
 
-	set->ids = calloc(sizeof(set->ids[0]), GOT_OBJECT_IDSET_MIN_BUCKETS);
+	set->ids = calloc(GOT_OBJECT_IDSET_MIN_BUCKETS, sizeof(set->ids[0]));
 	if (set->ids == NULL) {
 		free(set);
 		return NULL;