mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
minor cleanup
This commit is contained in:
parent
6ef9689b3f
commit
0c1f1f959f
@ -553,7 +553,8 @@ bdb_cache_find_info(
|
||||
struct bdb_info *bdb,
|
||||
ID id )
|
||||
{
|
||||
EntryInfo ei, *ei2;
|
||||
EntryInfo ei = { 0 },
|
||||
*ei2;
|
||||
|
||||
ei.bei_id = id;
|
||||
|
||||
@ -583,7 +584,7 @@ bdb_cache_find_id(
|
||||
struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
|
||||
Entry *ep = NULL;
|
||||
int rc = 0;
|
||||
EntryInfo ei;
|
||||
EntryInfo ei = { 0 };
|
||||
|
||||
ei.bei_id = id;
|
||||
|
||||
|
@ -1005,8 +1005,7 @@ id2entry_retry:
|
||||
#endif
|
||||
case LDAP_SCOPE_SUBTREE: {
|
||||
EntryInfo *tmp;
|
||||
for (tmp = BEI(e); tmp;
|
||||
tmp = tmp->bei_parent ) {
|
||||
for ( tmp = BEI(e); tmp; tmp = tmp->bei_parent ) {
|
||||
if ( tmp->bei_id == base.e_id ) {
|
||||
scopeok = 1;
|
||||
break;
|
||||
|
@ -103,7 +103,7 @@ static struct berval ocbva[] = {
|
||||
BER_BVC("top"),
|
||||
BER_BVC("subentry"),
|
||||
BER_BVC("syncProviderSubentry"),
|
||||
{0,NULL}
|
||||
BER_BVNULL
|
||||
};
|
||||
|
||||
Entry *
|
||||
@ -130,8 +130,7 @@ slap_create_context_csn_entry(
|
||||
context_csn, NULL );
|
||||
}
|
||||
|
||||
bv.bv_val = "{}";
|
||||
bv.bv_len = sizeof("{}")-1;
|
||||
BER_BVSTR( &bv, "{}" );
|
||||
attr_merge_one( e, slap_schema.si_ad_subtreeSpecification, &bv, NULL );
|
||||
|
||||
build_new_dn( &e->e_name, &be->be_nsuffix[0],
|
||||
|
Loading…
Reference in New Issue
Block a user