From: Pierangelo Masarati Date: Tue, 4 Apr 2006 21:07:53 +0000 (+0000) Subject: silence warning X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=582ee9675f7b4cb47aac0a5db5c078b6ba0d280c;p=openldap silence warning --- diff --git a/tests/progs/slapd-bind.c b/tests/progs/slapd-bind.c index 9b6d03a4c6..9ac746d967 100644 --- a/tests/progs/slapd-bind.c +++ b/tests/progs/slapd-bind.c @@ -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;