http-push.c: rearrange xcalloc arguments
xcalloc() takes two arguments: the number of elements and their size. http-push passes the arguments in reverse order, passing the size of a repo, 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
f3d51ffde88323fd4a5c18ac19a47cf571f62ae4
1 file changed
+1
-1
http-push.c
+1
-1
@@ -1732,7 +1732,7 @@ int main(int argc, char **argv)
1732
1733
git_extract_argv0_path(argv[0]);
1734
1735
- repo = xcalloc(sizeof(*repo), 1);
1735
+ repo = xcalloc(1, sizeof(*repo));
1736
1737
argv++;
1738
for (i = 1; i < argc; i++, argv++) {