From: Howard Chu Date: Fri, 25 Jan 2002 07:07:55 +0000 (+0000) Subject: Minor cleanup, no need to zero fields in calloc'd memory X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2367a318725c75312436873f31be458a1a201d23;p=openldap Minor cleanup, no need to zero fields in calloc'd memory --- diff --git a/servers/slapd/add.c b/servers/slapd/add.c index 01e46267c2..328f294137 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -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 );