From: Luke Howard Date: Fri, 2 Jan 2004 06:10:51 +0000 (+0000) Subject: Wrap slapi_entry_attr_get_charptr() around slapi_value_get_string() X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~64 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=53002fc3ce41f15647293d061492b30777a28deb;p=openldap Wrap slapi_entry_attr_get_charptr() around slapi_value_get_string() --- diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 29fa81010d..de62de247f 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -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;