From: Kurt Zeilenga Date: Mon, 21 Aug 2000 23:20:26 +0000 (+0000) Subject: Fix uninitialized value ptr bug X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2208 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f207bd9dd2d736fa6546af1e12014b5451e4e6cd;p=openldap Fix uninitialized value ptr bug --- 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;