diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-07-06 17:51:00 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-07-06 21:54:21 +0200 |
commit | 502bddf7676b8061a877e7c83b647a64963c3efe (patch) | |
tree | 95b4c77bd02a4b5df650934a682cbd4bd2e72f47 | |
parent | b03040c5a903e24a8216b9245f2925eb2205cd67 (diff) | |
download | samba-502bddf7676b8061a877e7c83b647a64963c3efe.tar.gz samba-502bddf7676b8061a877e7c83b647a64963c3efe.tar.bz2 samba-502bddf7676b8061a877e7c83b647a64963c3efe.zip |
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.
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/new_partition.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 = { |