1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

pyparam: Allow specifying None as section name to LoadparmContext.get()

to mean default section.
This commit is contained in:
Jelmer Vernooij 2010-06-20 13:51:14 +02:00
parent f0ab4503d6
commit 338315f4d7

View File

@ -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);