]> git.sur5r.net Git - openldap/commitdiff
Minor cleanup, no need to zero fields in calloc'd memory
authorHoward Chu <hyc@openldap.org>
Fri, 25 Jan 2002 07:07:55 +0000 (07:07 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 25 Jan 2002 07:07:55 +0000 (07:07 +0000)
servers/slapd/add.c

index 01e46267c2e3634b591bbf3453b83c8d7b30fe23..328f294137473e8e34f488a6ad7493c17be2fd8f 100644 (file)
@@ -81,12 +81,6 @@ do_add( Connection *conn, Operation *op )
        }
 
        e = (Entry *) ch_calloc( 1, sizeof(Entry) );
-       e->e_name.bv_val = NULL;
-       e->e_name.bv_len = 0;
-       e->e_nname.bv_val = NULL;
-       e->e_nname.bv_len = 0;
-       e->e_attrs = NULL;
-       e->e_private = NULL;
 
        rc = dnPrettyNormal( NULL, &dn, &e->e_name, &e->e_nname );