mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
need NULL sentinel
This commit is contained in:
parent
05cd4c602b
commit
4e36d5ae88
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue