summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-16 19:17:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-16 19:17:50 (GMT)
commita634a6d209fc67ed8fb58925a6ae713b2a913a83 (patch)
treef0d17737e519bc1de9bc89bba5ddcc57366f847c /diff.c
parent6d681f0a3e1fd10d4f51df3a90af30f4de299f89 (diff)
parent92e25b6b5b66320e73ace921f3db816ef4243d1b (diff)
downloadgit-a634a6d209fc67ed8fb58925a6ae713b2a913a83.zip
git-a634a6d209fc67ed8fb58925a6ae713b2a913a83.tar.gz
git-a634a6d209fc67ed8fb58925a6ae713b2a913a83.tar.bz2
Merge branch 'bg/xcalloc-nmemb-then-size'
Like calloc(3), xcalloc() takes nmemb and then size. * bg/xcalloc-nmemb-then-size: transport-helper.c: rearrange xcalloc arguments remote.c: rearrange xcalloc arguments reflog-walk.c: rearrange xcalloc arguments pack-revindex.c: rearrange xcalloc arguments notes.c: rearrange xcalloc arguments imap-send.c: rearrange xcalloc arguments http-push.c: rearrange xcalloc arguments diff.c: rearrange xcalloc arguments config.c: rearrange xcalloc arguments commit.c: rearrange xcalloc arguments builtin/remote.c: rearrange xcalloc arguments builtin/ls-remote.c: rearrange xcalloc arguments
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index de25819..bba9a55 100644
--- a/diff.c
+++ b/diff.c
@@ -1361,7 +1361,7 @@ static struct diffstat_file *diffstat_add(struct diffstat_t *diffstat,
const char *name_b)
{
struct diffstat_file *x;
- x = xcalloc(sizeof (*x), 1);
+ x = xcalloc(1, sizeof(*x));
ALLOC_GROW(diffstat->files, diffstat->nr + 1, diffstat->alloc);
diffstat->files[diffstat->nr++] = x;
if (name_b) {