From 628da7be89e42951e5b0e83d7cb8114efc5ebfd1 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 20 Jul 2005 14:19:52 +0000 Subject: [PATCH] fix uninitialized value use --- servers/slapd/oidm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/oidm.c b/servers/slapd/oidm.c index 32b4a47e74..3c93c3ef41 100644 --- a/servers/slapd/oidm.c +++ b/servers/slapd/oidm.c @@ -119,9 +119,9 @@ usage: fprintf( stderr, "\tObjectIdentifier \n"); return 1; } - om = (OidMacro *) SLAP_MALLOC( sizeof(OidMacro) ); + om = (OidMacro *) SLAP_CALLOC( sizeof(OidMacro), 1 ); if( om == NULL ) { - Debug( LDAP_DEBUG_ANY, "parse_oidm: SLAP_MALLOC failed", 0, 0, 0 ); + Debug( LDAP_DEBUG_ANY, "parse_oidm: SLAP_CALLOC failed", 0, 0, 0 ); return 1; } -- 2.39.5