pack-revindex.c: rearrange xcalloc arguments

xcalloc() takes two arguments: the number of elements and their size. init_pack_revindex() passes the arguments in reverse order, passing the size of a pack_revindex, followed by the number to allocate. Rearrange them so they are in the correct order. Signed-off-by: Brian Gesiak <modocache@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brian Gesiak committed May 27, 2014 at 00:33 UTC 48d547fb381b311fd327f84f1dff11228303c872
1 file changed +1 -1
pack-revindex.c
+1 -1
@@ -45,7 +45,7 @@ static void init_pack_revindex(void)
45 if (!num)
46 return;
47 pack_revindex_hashsz = num * 11;
48 - pack_revindex = xcalloc(sizeof(*pack_revindex), pack_revindex_hashsz);
48 + pack_revindex = xcalloc(pack_revindex_hashsz, sizeof(*pack_revindex));
49 for (p = packed_git; p; p = p->next) {
50 num = pack_revindex_ix(p);
51 num = - 1 - num;