Fix previous commit

This commit is contained in:
Luke Howard 2004-01-02 06:34:50 +00:00
parent 53002fc3ce
commit 3102602002

View file

@ -309,7 +309,12 @@ slapi_entry_attr_get_charptr( const Slapi_Entry *e, const char *type )
}
if ( attr->a_vals != NULL && attr->a_vals[0].bv_len != 0 ) {
return (char *)slapi_value_get_string( attr->a_vals );
const char *p;
p = slapi_value_get_string( &attr->a_vals[0] );
if ( p != NULL ) {
return slapi_ch_strdup( (char *)p );
}
}
return NULL;