From f207bd9dd2d736fa6546af1e12014b5451e4e6cd Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 21 Aug 2000 23:20:26 +0000 Subject: [PATCH] Fix uninitialized value ptr bug --- servers/slapd/schema_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 9ca8ca5826..023d99d091 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -923,13 +923,13 @@ int caseExactIA5SubstringsIndexer( int j,max; struct berval *value; + value = values[i]; + if( value->bv_len < SLAP_INDEX_SUBSTR_MINLEN ) continue; max = SLAP_INDEX_SUBSTR_MAXLEN < value->bv_len ? SLAP_INDEX_SUBSTR_MAXLEN : value->bv_len; - value = values[i]; - for( j=SLAP_INDEX_SUBSTR_MINLEN; j<=max; j++ ) { char pre; -- 2.39.5