Initialise 'flags' in new python ldb binding for ldb_connect
authorAndrew Bartlett <abartlet@samba.org>
Mon, 5 Jan 2009 09:02:02 +0000 (20:02 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 5 Jan 2009 09:08:04 +0000 (20:08 +1100)
source4/lib/ldb/pyldb.c

index 10b9691ae079ca93519bf6c95e2713a0fee3d3fa..0dda9aa05bb45e4b023394ad331c821393e3bf41 100644 (file)
@@ -538,7 +538,7 @@ static PyObject *py_ldb_new(PyTypeObject *type, PyObject *args, PyObject *kwargs
 static PyObject *py_ldb_connect(PyLdbObject *self, PyObject *args, PyObject *kwargs)
 {
        char *url;
-       int flags;
+       int flags = 0;
        PyObject *py_options = Py_None;
        int ret;
        const char **options;