mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Minor cleanup, no need to zero fields in calloc'd memory
This commit is contained in:
parent
1e7ca2e850
commit
2367a31872
@ -81,12 +81,6 @@ do_add( Connection *conn, Operation *op )
|
|||||||
}
|
}
|
||||||
|
|
||||||
e = (Entry *) ch_calloc( 1, sizeof(Entry) );
|
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 );
|
rc = dnPrettyNormal( NULL, &dn, &e->e_name, &e->e_nname );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user