mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-02 04:59:39 -05:00
ITS#1274 fix
This commit is contained in:
parent
2ad03e6041
commit
e2b3914982
1 changed files with 2 additions and 6 deletions
|
|
@ -776,7 +776,6 @@ approxIndexer(
|
|||
|
||||
|
||||
for( j=0; values[j] != NULL; j++ ) {
|
||||
|
||||
/* Isolate how many words there are. There will be a key for each */
|
||||
val = ch_strdup( values[j]->bv_val );
|
||||
for( wordcount=0,c=val; *c; c++) {
|
||||
|
|
@ -828,7 +827,6 @@ approxFilter(
|
|||
int i, count, len;
|
||||
struct berval **keys;
|
||||
|
||||
|
||||
/* Isolate how many words there are. There will be a key for each */
|
||||
val = ch_strdup( ((struct berval *)assertValue)->bv_val );
|
||||
for( count=0,c=val; *c; c++) {
|
||||
|
|
@ -899,7 +897,6 @@ approxIndexer(
|
|||
int i;
|
||||
struct berval **keys;
|
||||
|
||||
|
||||
for( i=0; values[i] != NULL; i++ ) {
|
||||
/* just count them */
|
||||
}
|
||||
|
|
@ -932,7 +929,6 @@ approxFilter(
|
|||
{
|
||||
struct berval **keys;
|
||||
|
||||
|
||||
keys = (struct berval **)ch_malloc( sizeof( struct berval * ) * 2 );
|
||||
|
||||
/* Copy the value and run it through phonetic() */
|
||||
|
|
@ -3623,8 +3619,8 @@ numericStringNormalize(
|
|||
}
|
||||
}
|
||||
|
||||
assert( newval->bv_val <= p );
|
||||
assert( q <= p );
|
||||
/* we should have copied no more then is in val */
|
||||
assert( (q - newval->bv_val) <= (p - val->bv_val) );
|
||||
|
||||
/* null terminate */
|
||||
*q = '\0';
|
||||
|
|
|
|||
Loading…
Reference in a new issue