diff options
author | Christian Ambach <ambi@samba.org> | 2013-12-10 17:45:58 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-07-15 12:46:13 +0200 |
commit | 7c98a57d505ed3ded6cf84059266a23d6d7d83e8 (patch) | |
tree | e6acdda7a3820dc5f2ff9c82f3d90dc089130500 /lib/ldb | |
parent | 3f4d6d2a5a697a37060ade9f6981c420264c9dbd (diff) | |
download | samba-7c98a57d505ed3ded6cf84059266a23d6d7d83e8.tar.gz |
lib/ldb fix compiler warnings
about potentially uninitialized variables
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 9784ed9fb75022fcd7eaef24108ed8c6acf7f86f)
Diffstat (limited to 'lib/ldb')
-rw-r--r-- | lib/ldb/common/ldb_dn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldb/common/ldb_dn.c b/lib/ldb/common/ldb_dn.c index 14596f6c37..6b6f90c13e 100644 --- a/lib/ldb/common/ldb_dn.c +++ b/lib/ldb/common/ldb_dn.c @@ -287,7 +287,7 @@ 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; + char *p, *ex_name = NULL, *ex_value = NULL, *data, *d, *dt, *t; bool trim = true; bool in_extended = true; bool in_ex_name = false; @@ -298,7 +298,7 @@ static bool ldb_dn_explode(struct ldb_dn *dn) bool is_oid = false; bool escape = false; unsigned int x; - size_t l; + size_t l = 0; int ret; char *parse_dn; bool is_index; |