mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix uninitialized value use
This commit is contained in:
parent
6f3363f0d9
commit
628da7be89
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user