mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
fix uninitialized value use
This commit is contained in:
parent
6f3363f0d9
commit
628da7be89
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue