mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Wrap slapi_entry_attr_get_charptr() around slapi_value_get_string()
This commit is contained in:
parent
cc9101d980
commit
53002fc3ce
@ -309,7 +309,7 @@ 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 slapi_ch_strdup( attr->a_vals[0].bv_val );
|
||||
return (char *)slapi_value_get_string( attr->a_vals );
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user