diff options
author | Christian Ambach <ambi@samba.org> | 2013-12-10 17:46:30 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-07-15 12:46:13 +0200 |
commit | 90da5f38feb35f013c5b782a606d3fdec3d092f6 (patch) | |
tree | 58e815fbe5712802b7726e96bb10955dcf43a1a8 /lib/ldb | |
parent | 7c98a57d505ed3ded6cf84059266a23d6d7d83e8 (diff) | |
download | samba-90da5f38feb35f013c5b782a606d3fdec3d092f6.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 35b4ba0193d783d85283b07f520f0af8dc2c1260)
Diffstat (limited to 'lib/ldb')
-rw-r--r-- | lib/ldb/ldb_map/ldb_map_inbound.c | 4 |
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 06d52aa1d6..461e68113a 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; |