From 582ee9675f7b4cb47aac0a5db5c078b6ba0d280c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 4 Apr 2006 21:07:53 +0000 Subject: [PATCH] silence warning --- tests/progs/slapd-bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5