]> git.sur5r.net Git - openldap/commitdiff
silence warnings
authorPierangelo Masarati <ando@openldap.org>
Tue, 13 Apr 2004 09:52:12 +0000 (09:52 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 13 Apr 2004 09:52:12 +0000 (09:52 +0000)
servers/slapd/syncrepl.c

index 244a7a5031093be57a6d401b331fc06f894123f1..b5c76c6de2b51f9be2c2f6e86c887f2a1b6b8c39 100644 (file)
@@ -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;
                        }
                }