pyldb: fixed a warning
authorAndrew Tridgell <tridge@samba.org>
Fri, 19 Aug 2011 07:26:33 +0000 (17:26 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 24 Aug 2011 21:39:37 +0000 (07:39 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

lib/ldb/pyldb.c

index 72680c1710f959c4800ed2cc460142f2c7c32437..d456acbe4d48a595a0c7f02288d08cd914fd06a1 100644 (file)
@@ -2290,8 +2290,8 @@ static int py_ldb_msg_element_cmp(PyLdbMessageElementObject *self, PyLdbMessageE
 
 static PyObject *py_ldb_msg_element_iter(PyLdbMessageElementObject *self)
 {
-       struct ldb_message_element *el = ldb_msg_element_to_set(NULL,
-               pyldb_MessageElement_AsMessageElement(self));
+       PyObject *el = ldb_msg_element_to_set(NULL,
+                                             pyldb_MessageElement_AsMessageElement(self));
        return PyObject_GetIter(el);
 }