s4:dsdb fix compiler warnings
authorChristian Ambach <ambi@samba.org>
Tue, 10 Dec 2013 16:52:29 +0000 (17:52 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 12 Dec 2013 22:21:28 +0000 (14:21 -0800)
about potentially uninitialized variables

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/password_hash.c

index 7974169499073f7cf250c9e4b04cdf21bc5cfc93..3e0f1a091e6209274dd15727b96fe61afc8b50ff 100644 (file)
@@ -2614,7 +2614,7 @@ static int get_domain_data_callback(struct ldb_request *req,
        struct ldb_context *ldb;
        struct ph_context *ac;
        struct loadparm_context *lp_ctx;
-       int ret;
+       int ret = LDB_SUCCESS;
 
        ac = talloc_get_type(req->context, struct ph_context);
        ldb = ldb_module_get_ctx(ac->module);
@@ -3151,7 +3151,7 @@ static int ph_mod_search_callback(struct ldb_request *req, struct ldb_reply *are
 {
        struct ldb_context *ldb;
        struct ph_context *ac;
-       int ret;
+       int ret = LDB_SUCCESS;
 
        ac = talloc_get_type(req->context, struct ph_context);
        ldb = ldb_module_get_ctx(ac->module);