]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/repl.c
update for new backend types
[openldap] / servers / slapd / repl.c
index 255607117ee08bfecf6b51c2917d401a1aecc8af..cfc2cb3d3bcf5c49b84328bf67d19ca9ff615699 100644 (file)
@@ -48,8 +48,8 @@ add_replica_info(
 {
        int i = 0;
 
-       assert( be );
-       assert( host );
+       assert( be != NULL );
+       assert( host != NULL );
 
        if ( be->be_replica != NULL ) {
                for ( ; be->be_replica[ i ] != NULL; i++ );
@@ -126,8 +126,6 @@ replog1( struct slap_replica_info *ri, Operation *op, FILE *fp, long now);
 void
 replog( Operation *op )
 {
-       Modifications   *ml = NULL;
-       Attribute       *a = NULL;
        FILE    *fp, *lfp;
        int     i;
 /* undef NO_LOG_WHEN_NO_REPLICAS */
@@ -278,7 +276,7 @@ replog1(
 
        case LDAP_REQ_MODIFY:
                for ( ml = op->orm_modlist; ml != NULL; ml = ml->sml_next ) {
-                       char *did, *type = ml->sml_desc->ad_cname.bv_val;
+                       char *did = NULL, *type = ml->sml_desc->ad_cname.bv_val;
                        switch ( ml->sml_op ) {
                        case LDAP_MOD_ADD:
                                did = "add"; break;