summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-08-03 00:56:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-08-03 00:56:11 (GMT)
commit4e36d5ae883ef2718a8599ad1313679f4e7483c1 (patch)
treec63c51442e1f2f66cb1c5b89eca412a36684e541
parent05cd4c602b4f16606dd046dfad51f1d0465d9d85 (diff)
downloadcpython-4e36d5ae883ef2718a8599ad1313679f4e7483c1.zip
cpython-4e36d5ae883ef2718a8599ad1313679f4e7483c1.tar.gz
cpython-4e36d5ae883ef2718a8599ad1313679f4e7483c1.tar.bz2
need NULL sentinel
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index f4461c0..572b5d1 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4616,7 +4616,7 @@ static PyObject *
sched_param_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{
PyObject *res, *priority;
- static char *kwlist[] = {"sched_priority"};
+ static char *kwlist[] = {"sched_priority", NULL};
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:sched_param", kwlist, &priority))
return NULL;