mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
_PyStack_UnpackDict() now returns -1 on error
Issue #29286. Change _PyStack_UnpackDict() prototype to be able to notify of failure when args is NULL.
This commit is contained in:
parent
29d39cc8f5
commit
998c20962c
3 changed files with 19 additions and 14 deletions
|
@ -240,8 +240,8 @@ _PyCFunction_FastCallDict(PyObject *func_obj, PyObject **args, Py_ssize_t nargs,
|
|||
PyObject *kwnames;
|
||||
_PyCFunctionFast fastmeth = (_PyCFunctionFast)meth;
|
||||
|
||||
stack = _PyStack_UnpackDict(args, nargs, kwargs, &kwnames, func_obj);
|
||||
if (stack == NULL) {
|
||||
if (_PyStack_UnpackDict(args, nargs, kwargs,
|
||||
&stack, &kwnames, func_obj) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue