From 583242c9a37b8732ba695d347f4c6ef14e737ffe Mon Sep 17 00:00:00 2001 From: Sang Seok Lim Date: Wed, 16 Feb 2005 17:00:11 +0000 Subject: [PATCH] initialize AttributeAssertion before using --- servers/slapd/back-bdb/search.c | 6 +++--- servers/slapd/compare.c | 2 +- servers/slapd/syncrepl.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index 9b863f1217..c770f8112b 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -153,7 +153,7 @@ static int search_aliases( Entry *matched, *a; EntryInfo *ei; struct berval bv_alias = BER_BVC( "alias" ); - AttributeAssertion aa_alias; + AttributeAssertion aa_alias = { NULL, BER_BVNULL, NULL }; Filter af; DB_LOCK locka, lockr; int first = 1; @@ -1022,10 +1022,10 @@ static int search_candidates( int rc, depth = 1; Filter f, rf, xf, nf; ID *stack; - AttributeAssertion aa_ref; + AttributeAssertion aa_ref = { NULL, BER_BVNULL, NULL }; #ifdef BDB_SUBENTRIES Filter sf; - AttributeAssertion aa_subentry; + AttributeAssertion aa_subentry = { NULL, BER_BVNULL, NULL }; #endif /* diff --git a/servers/slapd/compare.c b/servers/slapd/compare.c index 3541118d03..cd26d60c20 100644 --- a/servers/slapd/compare.c +++ b/servers/slapd/compare.c @@ -47,7 +47,7 @@ do_compare( struct berval dn = BER_BVNULL; struct berval desc = BER_BVNULL; struct berval value = BER_BVNULL; - AttributeAssertion ava = { NULL, BER_BVNULL }; + AttributeAssertion ava = { NULL, BER_BVNULL, NULL }; ava.aa_desc = NULL; diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index ec9f08280b..7794fda426 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1143,7 +1143,7 @@ syncrepl_entry( SlapReply rs_add = {REP_RESULT}; SlapReply rs_modify = {REP_RESULT}; Filter f = {0}; - AttributeAssertion ava = {0}; + AttributeAssertion ava = { NULL, BER_BVNULL, NULL }; int rc = LDAP_SUCCESS; int ret = LDAP_SUCCESS; @@ -1538,7 +1538,7 @@ syncrepl_del_nonpresent( if ( uuids ) { Filter uf; - AttributeAssertion eq; + AttributeAssertion eq = { NULL, BER_BVNULL, NULL }; int i; op->ors_attrsonly = 1;