summaryrefslogtreecommitdiffstats
path: root/lib/ldb/common
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-12-10 17:45:58 +0100
committerJeremy Allison <jra@samba.org>2013-12-12 14:21:27 -0800
commit9784ed9fb75022fcd7eaef24108ed8c6acf7f86f (patch)
treee9973633b712ceb09931e229db51e3c47e883339 /lib/ldb/common
parentf1acab164338f1536c8e5793e967a00389d0ac70 (diff)
downloadsamba-9784ed9fb75022fcd7eaef24108ed8c6acf7f86f.tar.gz
samba-9784ed9fb75022fcd7eaef24108ed8c6acf7f86f.tar.xz
samba-9784ed9fb75022fcd7eaef24108ed8c6acf7f86f.zip
lib/ldb fix compiler warnings
about potentially uninitialized variables Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/ldb/common')
-rw-r--r--lib/ldb/common/ldb_dn.c4
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;