summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-06-20 13:51:14 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 13:51:14 +0200
commit338315f4d713e2648419f2eda805748901435204 (patch)
tree2cd49ebe0a25eae0f3fd457f896697b8a3209495
parentf0ab4503d6204ede46fad1d7586ad5d655c1c6fa (diff)
downloadsamba-338315f4d713e2648419f2eda805748901435204.tar.gz
samba-338315f4d713e2648419f2eda805748901435204.tar.bz2
samba-338315f4d713e2648419f2eda805748901435204.zip
pyparam: Allow specifying None as section name to LoadparmContext.get()
to mean default section.
-rw-r--r--source4/param/pyparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/param/pyparam.c b/source4/param/pyparam.c
index af577938d7..d09cfb84dd 100644
--- a/source4/param/pyparam.c
+++ b/source4/param/pyparam.c
@@ -175,7 +175,7 @@ static PyObject *py_lp_ctx_get(py_talloc_Object *self, PyObject *args)
char *param_name;
char *section_name = NULL;
PyObject *ret;
- if (!PyArg_ParseTuple(args, "s|s", &param_name, &section_name))
+ if (!PyArg_ParseTuple(args, "s|z", &param_name, &section_name))
return NULL;
ret = py_lp_ctx_get_helper(PyLoadparmContext_AsLoadparmContext(self), section_name, param_name);