git.samba.org
/
garming
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3da801a
)
pyldb: make ldb.connect() url mandatory
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Wed, 18 Apr 2018 02:37:12 +0000
(14:37 +1200)
committer
Andrew Bartlett
<abartlet@samba.org>
Fri, 1 Feb 2019 02:36:18 +0000
(
03:36
+0100)
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>
lib/ldb/pyldb.c
patch
|
blob
|
history
diff --git
a/lib/ldb/pyldb.c
b/lib/ldb/pyldb.c
index b2cac8a3497ac6082f9a3cf739a32c2909026f16..8e48fa5d56dc36e319a59825806145a8bba1549e 100644
(file)
--- 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, "
|z
IO",
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "
z|
IO",
discard_const_p(char *, kwnames),
&url, &flags, &py_options))
return NULL;