ldb:ldb_dn_explode - remove/unify some duplicate initialisations
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 8 Jan 2011 20:59:37 +0000 (21:59 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Wed, 12 Jan 2011 18:52:19 +0000 (19:52 +0100)
source4/lib/ldb/common/ldb_dn.c

index 1b714c9427f942e63abd121964283e11a5224da0..180ff41ff4efff6dd7382696cb6bb425101e0ac8 100644 (file)
@@ -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;