commit | 4e36d5ae883ef2718a8599ad1313679f4e7483c1 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Aug 02 19:56:11 2011 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Aug 02 19:56:11 2011 -0500 |
tree | c63c51442e1f2f66cb1c5b89eca412a36684e541 | |
parent | 05cd4c602b4f16606dd046dfad51f1d0465d9d85 [diff] [blame] |
need NULL sentinel
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 @@ 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;