From b804c5396cb5c14612f8336c9b71afdbc3f81b0e Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 8 Jan 2011 21:59:37 +0100 Subject: ldb:ldb_dn_explode - remove/unify some duplicate initialisations --- source4/lib/ldb/common/ldb_dn.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index 1b714c9427..180ff41ff4 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -288,8 +288,8 @@ char *ldb_dn_escape_value(TALLOC_CTX *mem_ctx, struct ldb_val value) static bool ldb_dn_explode(struct ldb_dn *dn) { char *p, *ex_name, *ex_value, *data, *d, *dt, *t; - bool trim = false; - bool in_extended = false; + bool trim = true; + bool in_extended = true; bool in_ex_name = false; bool in_ex_value = false; bool in_attr = false; @@ -352,10 +352,6 @@ static bool ldb_dn_explode(struct ldb_dn *dn) } p = parse_dn; - in_extended = true; - in_ex_name = false; - in_ex_value = false; - trim = true; t = NULL; d = dt = data; -- cgit