X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-rev-list.c;h=ac551d59f3f6cb209a645ad708c46e4e88791295;hb=562ca192f94496611583688beb3725603ce51f89;hp=8efd609b12e3c8cf20fbe1bf5c0d55643d34ea3c;hpb=1ed84157a21a3e868228b15588e4aadfbe5a030b;p=git.git diff --git a/builtin-rev-list.c b/builtin-rev-list.c index 8efd609b1..ac551d59f 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) {