]> git.sur5r.net Git - openldap/commitdiff
Fix uninitialized value ptr bug
authorKurt Zeilenga <kurt@openldap.org>
Mon, 21 Aug 2000 23:20:26 +0000 (23:20 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 21 Aug 2000 23:20:26 +0000 (23:20 +0000)
servers/slapd/schema_init.c

index 9ca8ca582616efb2b94e7b9be95e092e38961cd4..023d99d0916051d5f92b0ad763c6c9a43f53ea2d 100644 (file)
@@ -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;