summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-31 21:12:32 -0700
committerJunio C Hamano <gitster@pobox.com>2007-07-31 21:12:32 -0700
commit4b7f59af2a5b072a0a3950c956842e4d6223a167 (patch)
treeda4c15440086eb626aa00909e5a7ad404f98fa29 /builtin-rev-list.c
parentcf32190aa6966dea519e77cdcc80b87026beb3b4 (diff)
parent4e0b2bbc578f8729cf43939acb36e8db02ed8825 (diff)
downloadgit-4b7f59af2a5b072a0a3950c956842e4d6223a167.tar.gz
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 8efd609b12..ac551d59f3 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) {