summaryrefslogtreecommitdiffstats
path: root/ldap_convert.c
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-02-16 10:41:54 +0100
committerMartin Nagy <mnagy@redhat.com>2009-02-18 18:20:49 +0100
commitf494715142cd581b31ec3c9c809986133255ab59 (patch)
tree75cee069267673c80fb2ac0dba066f344bda83dc /ldap_convert.c
parentffa6b87e86b10b69791f3ac19e47eadefe94da46 (diff)
downloadldap_driver_testing-f494715142cd581b31ec3c9c809986133255ab59.tar.gz
ldap_driver_testing-f494715142cd581b31ec3c9c809986133255ab59.tar.xz
ldap_driver_testing-f494715142cd581b31ec3c9c809986133255ab59.zip
Add str_clear().
Same effect as str_init_char(str, "").
Diffstat (limited to 'ldap_convert.c')
-rw-r--r--ldap_convert.c2
1 files changed, 1 insertions, 1 deletions
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, ".");