[BusyBox] should xmalloc clear memmory ?

Matt Kraai kraai at alumni.carnegiemellon.edu
Sun Feb 11 14:55:58 UTC 2001


On Sun, Feb 11, 2001 at 10:48:12AM +1100, Glenn McGrath wrote:
> Using grep memset -r *|wc -l 
> 
> there are 75 places where we use memset, 5 of them dont set it to 0,
> probably a lot of the remaining 70 are happening imediately after
> xmalloc.
> 
> So, if we cleared memory inside xmalloc we could remove upto 70
> statments.
> 
> Would this be a bad idea for any reason ?

xcalloc.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20010211/2a0a8331/attachment.pgp 


More information about the busybox mailing list