From 502bddf7676b8061a877e7c83b647a64963c3efe Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 6 Jul 2010 17:51:00 +0200 Subject: s4:new_partition LDB module - fix an uninitalised variable warning > [ 651/1946] Compiling dsdb/samdb/ldb_modules/new_partition.c > ../dsdb/samdb/ldb_modules/new_partition.c: In function 'new_partition_add': > ../dsdb/samdb/ldb_modules/new_partition.c:195: warning: 'down_req' may be used uninitialized in this function The "down_req" variable isn't used anymore. --- source4/dsdb/samdb/ldb_modules/new_partition.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/dsdb/samdb/ldb_modules') diff --git a/source4/dsdb/samdb/ldb_modules/new_partition.c b/source4/dsdb/samdb/ldb_modules/new_partition.c index 63c9200775..a6102d6a6f 100644 --- a/source4/dsdb/samdb/ldb_modules/new_partition.c +++ b/source4/dsdb/samdb/ldb_modules/new_partition.c @@ -135,7 +135,6 @@ static int np_part_search_callback(struct ldb_request *req, struct ldb_reply *ar static int new_partition_add(struct ldb_module *module, struct ldb_request *req) { struct ldb_context *ldb; - struct ldb_request *down_req; struct np_context *ac; int ret; @@ -192,7 +191,7 @@ static int new_partition_add(struct ldb_module *module, struct ldb_request *req) } /* go on with the call chain */ - return ldb_next_request(module, down_req); + return ldb_next_request(module, req); } _PUBLIC_ const struct ldb_module_ops ldb_new_partition_module_ops = { -- cgit