Re: [ANNOUNCE] GIT 1.0.7
- From
- David 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); ...