From f494715142cd581b31ec3c9c809986133255ab59 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Mon, 16 Feb 2009 10:41:54 +0100 Subject: Add str_clear(). Same effect as str_init_char(str, ""). --- ldap_convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldap_convert.c') diff --git a/ldap_convert.c b/ldap_convert.c index 06e8176..568d68e 100644 --- a/ldap_convert.c +++ b/ldap_convert.c @@ -120,7 +120,7 @@ dn_to_text(const char *dn, const char *root_dn, ld_string_t *target) count -= count_root; } - str_init_char(target, ""); + str_clear(target); for (unsigned int i = 0; exploded_dn[i] != NULL && i < count; i++) { str_cat_char(target, exploded_dn[i]); str_cat_char(target, "."); -- cgit