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

Re: [ANNOUNCE] GIT 1.0.7

From
DMDavid S. Miller <davem@davemloft.net>
Date
Jan 7, 2006, 08:29 UTC
Message-ID
<20060107.002904.87767885.davem@davemloft.net>
In-Reply-To
<20060107.021614.94523887.yoshfuji@linux-ipv6.org>
From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Date: Sat, 07 Jan 2006 02:16:14 -0600 (CST)
Show 8 quoted lines
> @@ -43,6 +43,7 @@ static void add_to_known_names(const cha
>  	struct commit_name *name = xmalloc(sizeof(struct commit_name) + len);
>  
>  	name->commit = commit;
> +	name->path = sizeof(*name);
>  	name->prio = prio; 
>  	memcpy(name->path, path, len);
>  	idx = names;

Why are you assigning an integer to a pointer? :-) Probably you meant something like:

	struct commit_name *name = xmalloc(sizeof(struct commit_name) + len);
	...
	name->path = xmalloc(len);
	...
Previous: YOSHIFUJI Hideaki / 吉藤英明Next: YOSHIFUJI Hideaki / 吉藤英明
Message 3 of 11 in “[ANNOUNCE] GIT 1.0.7”
  1. Junio C HamanoJan 7, 2006
  2. YOSHIFUJI Hideaki / 吉藤英明Jan 7, 2006
  3. David S. MillerJan 7, 2006
  4. YOSHIFUJI Hideaki / 吉藤英明Jan 7, 2006
  5. Junio C HamanoJan 7, 2006
  6. Junio C HamanoJan 7, 2006
  7. Sergey VlasovJan 7, 2006
  8. Junio C HamanoJan 7, 2006
  9. H. Peter AnvinJan 7, 2006
  10. Junio C HamanoJan 7, 2006
  11. H. Peter AnvinJan 7, 2006

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.