fix uninitialized value use

This commit is contained in:
Pierangelo Masarati 2005-07-20 14:19:52 +00:00
parent 6f3363f0d9
commit 628da7be89

View File

@ -119,9 +119,9 @@ usage: fprintf( stderr, "\tObjectIdentifier <name> <oid>\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;
}