]> git.sur5r.net Git - openldap/commitdiff
ITS#6425 fix uninit'd vars
authorHoward Chu <hyc@openldap.org>
Wed, 9 Dec 2009 00:04:58 +0000 (00:04 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 9 Dec 2009 00:04:58 +0000 (00:04 +0000)
servers/slapd/syncrepl.c

index 7d18ea23c1dfbcd7798879570cf920f63bd428ea..02236b0bac751228b1b92cd6e521a9b8ab320694 100644 (file)
@@ -810,7 +810,7 @@ do_syncrep2(
                        ldap_get_entry_controls( si->si_ld, msg, &rctrls );
                        /* we can't work without the control */
                        if ( rctrls ) {
-                               LDAPControl **next;
+                               LDAPControl **next = NULL;
                                /* NOTE: make sure we use the right one;
                                 * a better approach would be to run thru
                                 * the whole list and take care of all */
@@ -998,7 +998,7 @@ do_syncrep2(
                                        si->si_ridtxt, err, ldap_err2string( err ) );
                        }
                        if ( rctrls ) {
-                               LDAPControl **next;
+                               LDAPControl **next = NULL;
                                /* NOTE: make sure we use the right one;
                                 * a better approach would be to run thru
                                 * the whole list and take care of all */