Apply string literal strdup fix to BDB2.

This commit is contained in:
Kurt Zeilenga 1999-05-27 23:06:53 +00:00
parent 0ce6ddb80c
commit a0d2b3c5a0

View file

@ -38,7 +38,11 @@ bdb2i_index_add_entry(
bvals[1] = NULL;
/* add the dn to the indexes */
bdb2i_index_add_values( be, "dn", bvals, e->e_id );
{
char *dn = ch_strdup( "dn" );
bdb2i_index_add_values( be, dn, bvals, e->e_id );
free( dn );
}
free( bv.bv_val );