]> git.sur5r.net Git - openldap/commitdiff
silence warning
authorPierangelo Masarati <ando@openldap.org>
Tue, 4 Apr 2006 21:07:53 +0000 (21:07 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 4 Apr 2006 21:07:53 +0000 (21:07 +0000)
tests/progs/slapd-bind.c

index 9b6d03a4c60c35194a431fc4ccd5fe5c851f17e9..9ac746d9670f3cd8233fc63b2e7e1f8b4dc05855 100644 (file)
@@ -347,7 +347,7 @@ do_base( char *uri, struct berval *base, struct berval *pass, int maxloop,
                char dn[BUFSIZ], *ptr;
                int j, k;
 
-               for ( k = 0; k < nrdns; k++) {
+               for ( j = 0, k = 0; k < nrdns; k++) {
                        j = rand() % nrdns;
                        if ( base->bv_len + rdns[j].bv_len < sizeof( dn ) ) {
                                break;