]> git.sur5r.net Git - openldap/commitdiff
Changed calloc to ch_malloc. Don't need clear, should use ch_ functions.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 18 Aug 1998 20:28:54 +0000 (20:28 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 18 Aug 1998 20:28:54 +0000 (20:28 +0000)
servers/slurpd/re.c

index f5168d829650bb8d98fa6baab19f947692c7fc3f..f0a60c8e9e1da7a839661b6fa7e1c4f615fad4ea 100644 (file)
@@ -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 {