Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff-no-index: DWIM "diff D F" into "diff D/F F"
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 68bb8c5a8493500b127ccac7327133d09acdcdcb..3f1f08f9fd28173e10440c8436d57c14215c342c 100644
(file)
--- 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) {