From: Kurt Zeilenga Date: Thu, 9 Sep 2004 06:16:03 +0000 (+0000) Subject: changing a malloc to a calloc shouldn't change behavior, but X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~555 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0b331b8159788f3dae0851bf0af60ca66ac47365;p=openldap changing a malloc to a calloc shouldn't change behavior, but this change seems to causes test007 to fail on some systems (e.g., FreeBSD 4). --- diff --git a/servers/slurpd/globals.c b/servers/slurpd/globals.c index c935f75c2e..d101a47ad5 100644 --- a/servers/slurpd/globals.c +++ b/servers/slurpd/globals.c @@ -59,7 +59,7 @@ init_globals( void ) { Globals *g; - g = ( Globals * ) malloc( sizeof( Globals )); + g = ( Globals * ) calloc( 1, sizeof( Globals )); if ( g == NULL ) { return NULL; }