need NULL sentinel
This commit is contained in:
parent
05cd4c602b
commit
4e36d5ae88
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue