Re: [PATCH 1/4] Fix allocation of "int*" instead of "int".
- From
Christian Couder <chriscool@tuxfamily.org>
- Date
- Aug 1, 2007, 04:11 UTC
- Message-ID
- <200708010611.14171.chriscool@tuxfamily.org>
- In-Reply-To
- <20070731195616.GA6329@sigill.intra.peff.net>
Le mardi 31 juillet 2007 21:56, Jeff King a écrit :
Show 5 quoted lines
> On Tue, Jul 31, 2007 at 02:48:29PM +0200, Christian Couder wrote: > > - weights = xcalloc(on_list, sizeof(int*)); > > + weights = xcalloc(on_list, sizeof(int)); > > How about the correct-by-definition sizeof(*weights)?
That's ok for me too.
Thanks, Christian.