summaryrefslogtreecommitdiff
path: root/lib/ldb/ldb_map
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-12-10 17:46:30 +0100
committerJeremy Allison <jra@samba.org>2013-12-12 14:21:27 -0800
commit35b4ba0193d783d85283b07f520f0af8dc2c1260 (patch)
treef2dc71017bb8c4ec396eb94b2f46fcc40d201713 /lib/ldb/ldb_map
parent9784ed9fb75022fcd7eaef24108ed8c6acf7f86f (diff)
downloadsamba-35b4ba0193d783d85283b07f520f0af8dc2c1260.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>
Diffstat (limited to 'lib/ldb/ldb_map')
-rw-r--r--lib/ldb/ldb_map/ldb_map_inbound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldb/ldb_map/ldb_map_inbound.c b/lib/ldb/ldb_map/ldb_map_inbound.c
index 06d52aa1d63..461e68113ab 100644
--- a/lib/ldb/ldb_map/ldb_map_inbound.c
+++ b/lib/ldb/ldb_map/ldb_map_inbound.c
@@ -476,7 +476,7 @@ static int map_add_do_local(struct map_context *ac)
int ldb_map_modify(struct ldb_module *module, struct ldb_request *req)
{
const struct ldb_message *msg = req->op.mod.message;
- struct ldb_request *search_req;
+ struct ldb_request *search_req = NULL;
struct ldb_message *remote_msg;
struct ldb_context *ldb;
struct map_context *ac;
@@ -699,7 +699,7 @@ static int map_delete_do_local(struct map_context *ac)
/* Rename a record. */
int ldb_map_rename(struct ldb_module *module, struct ldb_request *req)
{
- struct ldb_request *search_req;
+ struct ldb_request *search_req = NULL;
struct ldb_context *ldb;
struct map_context *ac;
int ret;