From 0b331b8159788f3dae0851bf0af60ca66ac47365 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 9 Sep 2004 06:16:03 +0000 Subject: [PATCH] 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). --- servers/slurpd/globals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5