[GRASS5] [patch] resize bug in X monitor

Eric G. Miller egm2 at jps.net
Tue Apr 30 20:50:12 EDT 2002


On Tue, Apr 30, 2002 at 07:56:19PM +0100, Glynn Clements wrote:
> 
> Magnus B{ckstr|m wrote:
[snip]
> > and the update to G_malloc() ensures that returned memory
> > is initialized to zeros (which not all malloc()s can be trusted to
> > do).
> 
> This shouldn't be necessary. Code which requires that the memory is
> zeroed should call G_calloc().

Not to mention that bzero() is a BSDism which may not be available
everywhere. Use memset instead.

-- 
Eric G. Miller <egm2 at jps.net>



More information about the grass-dev mailing list