Skip to content
Snippets Groups Projects
Commit b011c513 authored by Howard Chu's avatar Howard Chu
Browse files

Clean up entry initialization

parent 39eb55b5
Branches
Tags
No related merge requests found
......@@ -216,7 +216,7 @@ fail:;
ldap_pvt_thread_yield();
} else if (rc == LDAP_RES_SEARCH_ENTRY) {
Entry ent;
Entry ent = {0};
struct berval bdn;
e = ldap_first_entry(lc->ld,res);
if ( ldap_build_entry(op, e, &ent, &bdn,
......@@ -413,10 +413,6 @@ ldap_build_entry(
return LDAP_INVALID_DN_SYNTAX;
}
ent->e_id = 0;
ent->e_attrs = 0;
ent->e_ocflags = 0;
ent->e_private = 0;
attrp = &ent->e_attrs;
#ifdef ENABLE_REWRITE
......
......@@ -570,7 +570,7 @@ meta_send_entry(
{
struct metainfo *li = ( struct metainfo * )op->o_bd->be_private;
struct berval a, mapped;
Entry ent;
Entry ent = {0};
BerElement ber = *e->lm_ber;
Attribute *attr, **attrp;
struct berval dummy = { 0, NULL };
......@@ -616,9 +616,6 @@ meta_send_entry(
&ent.e_nname, target );
}
ent.e_id = 0;
ent.e_attrs = 0;
ent.e_private = 0;
attrp = &ent.e_attrs;
dc.ctx = "searchAttrDN";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment