[Python-checkins] cpython: need NULL sentinel
benjamin.peterson
python-checkins at python.org
Wed Aug 3 02:56:20 CEST 2011
http://hg.python.org/cpython/rev/6dda8da2a19a
changeset: 71720:6dda8da2a19a
user: Benjamin Peterson <benjamin at python.org>
date: Tue Aug 02 19:56:11 2011 -0500
summary:
need NULL sentinel
files:
Modules/posixmodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- 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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list