mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-15 19:34:10 -05:00
Fix previous commit
This commit is contained in:
parent
53002fc3ce
commit
3102602002
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue