summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);