mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Changed calloc to ch_malloc. Don't need clear, should use ch_ functions.
This commit is contained in:
parent
3eb609ab21
commit
8a3eefd111
@ -184,7 +184,7 @@ Re_parse(
|
||||
state |= GOT_TIME;
|
||||
break;
|
||||
case T_DN:
|
||||
re->re_dn = calloc( 1, len + 1 );
|
||||
re->re_dn = ch_malloc( len + 1 );
|
||||
memcpy( re->re_dn, value, len );
|
||||
state |= GOT_DN;
|
||||
break;
|
||||
@ -225,7 +225,7 @@ Re_parse(
|
||||
sizeof( Mi ) * ( nml + 2 ));
|
||||
re->re_mods[ nml ].mi_type = strdup( type );
|
||||
if ( value != NULL ) {
|
||||
re->re_mods[ nml ].mi_val = calloc( 1, len + 1 );
|
||||
re->re_mods[ nml ].mi_val = ch_malloc( len + 1 );
|
||||
memcpy( re->re_mods[ nml ].mi_val, value, len );
|
||||
re->re_mods[ nml ].mi_len = len;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user