From eae82899cafd8a7c4c5da6792418ae14ca881d47 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 13 Apr 2004 09:52:12 +0000 Subject: [PATCH] silence warnings --- servers/slapd/syncrepl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 244a7a5031..b5c76c6de2 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -1186,7 +1186,9 @@ syncrepl_entry( if ( rc != LDAP_SUCCESS ) { if ( rc == LDAP_ALREADY_EXISTS ) { Modifications *mod; - Modifications *modtail; + Modifications *modtail = modlist; + + assert( modlist ); for ( mod = modlist; mod != NULL; mod = mod->sml_next ) { modtail = mod; @@ -1805,7 +1807,7 @@ syncrepl_isupdate_dn( if ( !LDAP_STAILQ_EMPTY( &be->be_syncinfo )) { LDAP_STAILQ_FOREACH( si, &be->be_syncinfo, si_next ) { - if ( ret = dn_match( &si->si_updatedn, ndn )) { + if ( ( ret = dn_match( &si->si_updatedn, ndn ) ) ) { return ret; } } -- 2.39.5