summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-01-08 21:59:37 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-01-12 19:52:19 +0100
commitb804c5396cb5c14612f8336c9b71afdbc3f81b0e (patch)
treee7156194dfeb0102200cf96c19b308bc916124f9 /source4/lib/ldb/common
parent47adb9df10c7bed56fe92513e2602ac01e9590b2 (diff)
downloadsamba-b804c5396cb5c14612f8336c9b71afdbc3f81b0e.tar.gz
samba-b804c5396cb5c14612f8336c9b71afdbc3f81b0e.tar.bz2
samba-b804c5396cb5c14612f8336c9b71afdbc3f81b0e.zip
ldb:ldb_dn_explode - remove/unify some duplicate initialisations
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_dn.c8
1 files changed, 2 insertions, 6 deletions
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;