From 7a97ee1d84283d0e59648531678bd69a895c78f5 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Tue, 28 May 2013 07:54:27 -0500 Subject: remote: trivial style cleanup Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- remote.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/remote.c b/remote.c index 68eb99bdf0..e71f66de25 100644 --- a/remote.c +++ b/remote.c @@ -1474,8 +1474,7 @@ struct branch *branch_get(const char *name) ret->remote = remote_get(ret->remote_name); if (ret->merge_nr) { int i; - ret->merge = xcalloc(sizeof(*ret->merge), - ret->merge_nr); + ret->merge = xcalloc(ret->merge_nr, sizeof(*ret->merge)); for (i = 0; i < ret->merge_nr; i++) { ret->merge[i] = xcalloc(1, sizeof(**ret->merge)); ret->merge[i]->src = xstrdup(ret->merge_name[i]); -- cgit v1.2.3