]> git.sur5r.net Git - openldap/commitdiff
fix uninitialized var
authorPierangelo Masarati <ando@openldap.org>
Sat, 29 Nov 2003 17:24:34 +0000 (17:24 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 29 Nov 2003 17:24:34 +0000 (17:24 +0000)
servers/slapd/config.c

index f0b868a236fac654bf8af44a25ffbd0b7601de72..cbfc9482ca0ad0b4017b9da8197eba52b976bc05 100644 (file)
@@ -2850,7 +2850,7 @@ add_syncrepl(
                                ch_free( si->si_filterstr.bv_val );
                        }
                        if ( si_entry->si_attrs ) {
-                               int i;
+                               int i = 0;
                                while ( si_entry->si_attrs[i] != NULL ) {
                                        ch_free( si_entry->si_attrs[i] );
                                        i++;