diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2007-07-31 16:48:29 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-08-01 08:07:39 +0400 |
commit | 4e0b2bbc578f8729cf43939acb36e8db02ed8825 (patch) | |
tree | 762a3650689b6c56c9031cc9775acbd086970a3d | |
parent | 281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e (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>
-rw-r--r-- | builtin-rev-list.c | 2 |
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) { |