summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2018-04-18 14:37:12 +1200
committerAndrew Bartlett <abartlet@samba.org>2019-02-01 03:36:18 +0100
commit0e419a2163bf5cd680c75f229cb3750c2e7b9bb6 (patch)
tree194c20bff9e1a3af5fdf4869a1e48e3c072c3f47 /lib
parent3da801aea1a67606f25480ac7cd43eee77e003c8 (diff)
downloadsamba-0e419a2163bf5cd680c75f229cb3750c2e7b9bb6.tar.gz
pyldb: make ldb.connect() url mandatory
The call fails without it, so we might as well fail sooner Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/pyldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c
index b2cac8a3497..8e48fa5d56d 100644
--- a/lib/ldb/pyldb.c
+++ b/lib/ldb/pyldb.c
@@ -1213,7 +1213,7 @@ static PyObject *py_ldb_connect(PyLdbObject *self, PyObject *args, PyObject *kwa
const char * const kwnames[] = { "url", "flags", "options", NULL };
struct ldb_context *ldb_ctx;
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|zIO",
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "z|IO",
discard_const_p(char *, kwnames),
&url, &flags, &py_options))
return NULL;