git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/4] Fix allocation of "int*" instead of "int".

From
Christian Couder <chriscool@tuxfamily.org>
Date
Jul 31, 2007, 12:48 UTC
Message-ID
<20070731144829.ea83d43d.chriscool@tuxfamily.org>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 While working on something like a "git bisect dunno", I came up with
 the patches in this series.
 Thanks in advance,
 Christian.
 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 8efd609..5bcafe4 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(int));
 	counted = 0;
 
 	for (n = 0, p = list; p; p = p->next) {
-- 
1.5.2.1.144.gabc40
Next: Jeff King
Message 1 of 3 in “Fix allocation of "int*" instead of "int".”
  1. 1/4 Fix allocation of "int*" instead of "int".Christian Couder, Jul 31, 2007
  2. Jeff KingJul 31, 2007
  3. Christian CouderAug 1, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.