From 3a759e0375baf52694d004cab72c34f372528286 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 13 Sep 2011 15:01:51 +0200 Subject: ldb:pyldb.c - "py_ldb_rename" remove superflous "ldb" pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Tue Sep 13 18:11:18 CEST 2011 on sn-devel-104 --- lib/ldb/pyldb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c index 79912964cb..cb13fe97bc 100644 --- a/lib/ldb/pyldb.c +++ b/lib/ldb/pyldb.c @@ -1245,7 +1245,6 @@ static PyObject *py_ldb_rename(PyLdbObject *self, PyObject *args, PyObject *kwar PyObject *py_dn1, *py_dn2; struct ldb_dn *dn1, *dn2; int ret; - struct ldb_context *ldb; TALLOC_CTX *mem_ctx; PyObject *py_controls = Py_None; struct ldb_control **parsed_controls; @@ -1266,7 +1265,6 @@ static PyObject *py_ldb_rename(PyLdbObject *self, PyObject *args, PyObject *kwar PyErr_NoMemory(); return NULL; } - ldb = pyldb_Ldb_AsLdbContext(self); if (py_controls == Py_None) { parsed_controls = NULL; @@ -1277,12 +1275,12 @@ static PyObject *py_ldb_rename(PyLdbObject *self, PyObject *args, PyObject *kwar } - if (!pyldb_Object_AsDn(mem_ctx, py_dn1, ldb, &dn1)) { + if (!pyldb_Object_AsDn(mem_ctx, py_dn1, ldb_ctx, &dn1)) { talloc_free(mem_ctx); return NULL; } - if (!pyldb_Object_AsDn(mem_ctx, py_dn2, ldb, &dn2)) { + if (!pyldb_Object_AsDn(mem_ctx, py_dn2, ldb_ctx, &dn2)) { talloc_free(mem_ctx); return NULL; } -- cgit