commit db315d31c88c16f8105c1500cac6581f20419215 from: Omar Polo date: Tue Feb 13 19:05:14 2024 UTC pass the argument to calloc in the right order; no-op in practice reported by smatch. commit - 736fac9082f40fedb3e0fe65f715dc403eb7b250 commit + db315d31c88c16f8105c1500cac6581f20419215 blob - d74774dae3cba161ec98655b4c81d2d9fb38693c blob + c1602919d2977cd55ba83d051a26fb748e1153e5 --- lib/object_idset.c +++ lib/object_idset.c @@ -60,7 +60,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;