Re: [ANNOUNCE] GIT 1.0.7

From: David S. Miller <davem@davemloft.net>
Date: 2006-01-07 19:29:04
From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Date: Sat, 07 Jan 2006 02:16:14 -0600 (CST)

> @@ -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);
	...

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Jan 07 19:29:41 2006

This archive was generated by hypermail 2.1.8 : 2006-01-07 19:29:48 EST