diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 13:51:14 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-06-20 13:51:14 +0200 |
commit | 338315f4d713e2648419f2eda805748901435204 (patch) | |
tree | 2cd49ebe0a25eae0f3fd457f896697b8a3209495 /source4 | |
parent | f0ab4503d6204ede46fad1d7586ad5d655c1c6fa (diff) | |
download | samba-338315f4d713e2648419f2eda805748901435204.tar.gz samba-338315f4d713e2648419f2eda805748901435204.tar.bz2 samba-338315f4d713e2648419f2eda805748901435204.zip |
pyparam: Allow specifying None as section name to LoadparmContext.get()
to mean default section.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/param/pyparam.c | 2 |
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", ¶m_name, §ion_name)) + if (!PyArg_ParseTuple(args, "s|z", ¶m_name, §ion_name)) return NULL; ret = py_lp_ctx_get_helper(PyLoadparmContext_AsLoadparmContext(self), section_name, param_name); |