minor cleanup

This commit is contained in:
Pierangelo Masarati 2004-10-04 20:55:09 +00:00
parent 6ef9689b3f
commit 0c1f1f959f
3 changed files with 6 additions and 7 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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],