summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2007-07-31 12:48:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-08-01 04:07:39 (GMT)
commit4e0b2bbc578f8729cf43939acb36e8db02ed8825 (patch)
tree762a3650689b6c56c9031cc9775acbd086970a3d /builtin-rev-list.c
parent281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e (diff)
downloadgit-4e0b2bbc578f8729cf43939acb36e8db02ed8825.zip
git-4e0b2bbc578f8729cf43939acb36e8db02ed8825.tar.gz
git-4e0b2bbc578f8729cf43939acb36e8db02ed8825.tar.bz2
rev-list --bisect: fix allocation of "int*" instead of "int".
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 ebf53f5..2eb919f 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -310,7 +310,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) {