]> git.sur5r.net Git - openldap/commitdiff
coverity - init i
authorHoward Chu <hyc@openldap.org>
Wed, 26 Sep 2007 20:21:53 +0000 (20:21 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 26 Sep 2007 20:21:53 +0000 (20:21 +0000)
servers/slapd/back-ldap/bind.c

index 2afe5f11df630772e9d572df128ad93bcc444de5..bc0b3d9a3c51e5c272efc4b67c922b1612d0af5e 100644 (file)
@@ -2644,7 +2644,7 @@ ldap_back_controls_free( Operation *op, SlapReply *rs, LDAPControl ***pctrls )
        /* we assume that the controls added by the proxy come first,
         * so as soon as we find op->o_ctrls[ 0 ] we can stop */
        if ( ctrls && ctrls != op->o_ctrls ) {
-               int     i, n = 0, n_added;
+               int     i = 0, n = 0, n_added;
                void    *lower, *upper;
 
                assert( ctrls[ 0 ] != NULL );