Re: [ANNOUNCE] GIT 1.0.7
In article <20060107.002904.87767885.davem@davemloft.net> (at Sat, 07 Jan 2006 00:29:04 -0800 (PST)), "David S. Miller" <davem@davemloft.net> says:
> > name->commit = commit;
> > + name->path = sizeof(*name);
> > name->prio = prio;
Show 8 quoted lines
> 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);
> ...
oops.... you're right...
--yoshfuji @ about to fly