Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2007-07-31 16:48:29 +0400
committerJunio C Hamano <gitster@pobox.com>2007-08-01 08:07:39 +0400
commit4e0b2bbc578f8729cf43939acb36e8db02ed8825 (patch)
tree762a3650689b6c56c9031cc9775acbd086970a3d /builtin-rev-list.c
parent281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e (diff)
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 ebf53f5944..2eb919f39c 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) {