From: Pierangelo Masarati Date: Wed, 20 Jul 2005 14:19:52 +0000 (+0000) Subject: fix uninitialized value use X-Git-Tag: OPENLDAP_AC_BP~308 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=628da7be89e42951e5b0e83d7cb8114efc5ebfd1;p=openldap fix uninitialized value use --- 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; }