diff options
author | Brian Gesiak <modocache@gmail.com> | 2014-05-27 00:33:50 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-05-27 14:02:45 -0700 |
commit | f3d51ffde88323fd4a5c18ac19a47cf571f62ae4 (patch) | |
tree | 9e337f32161d3e5a077fd57fc4b4b22a5aabe906 /http-push.c | |
parent | 1a4927c5c54f737353323fd7bcd2045ee0985e1a (diff) | |
download | git-f3d51ffde88323fd4a5c18ac19a47cf571f62ae4.tar.gz |
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>
Diffstat (limited to 'http-push.c')
-rw-r--r-- | http-push.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c index f2c56c8454..de00d1693a 100644 --- a/http-push.c +++ b/http-push.c @@ -1732,7 +1732,7 @@ int main(int argc, char **argv) git_extract_argv0_path(argv[0]); - repo = xcalloc(sizeof(*repo), 1); + repo = xcalloc(1, sizeof(*repo)); argv++; for (i = 1; i < argc; i++, argv++) { |