summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-08-01 04:12:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-08-01 04:12:32 (GMT)
commit4b7f59af2a5b072a0a3950c956842e4d6223a167 (patch)
treeda4c15440086eb626aa00909e5a7ad404f98fa29 /builtin-rev-list.c
parentcf32190aa6966dea519e77cdcc80b87026beb3b4 (diff)
parent4e0b2bbc578f8729cf43939acb36e8db02ed8825 (diff)
downloadgit-4b7f59af2a5b072a0a3950c956842e4d6223a167.zip
git-4b7f59af2a5b072a0a3950c956842e4d6223a167.tar.gz
git-4b7f59af2a5b072a0a3950c956842e4d6223a167.tar.bz2
Merge branch 'maint'
* maint: rev-list --bisect: fix allocation of "int*" instead of "int".
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 8efd609..ac551d5 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -300,7 +300,7 @@ static struct commit_list *find_bisection(struct commit_list *list,
show_list("bisection 2 sorted", 0, nr, list);
*all = nr;
- weights = xcalloc(on_list, sizeof(int*));
+ weights = xcalloc(on_list, sizeof(*weights));
counted = 0;
for (n = 0, p = list; p; p = p->next) {