Re: [PATCH 1/4] Fix allocation of "int*" instead of "int".
- From
Jeff King <peff@peff.net>
- Date
- Jul 31, 2007, 19:56 UTC
- Message-ID
- <20070731195616.GA6329@sigill.intra.peff.net>
- In-Reply-To
- <20070731144829.ea83d43d.chriscool@tuxfamily.org>
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)?
-Peff