summaryrefslogtreecommitdiffstats
path: root/Objects/methodobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-01-17 00:57:29 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-01-17 00:57:29 (GMT)
commit998c20962ca3e2e693c1635efe76c0144dde76fc (patch)
tree400922db5ea9f99e4e1bdabe23a02fc439ade5ed /Objects/methodobject.c
parent29d39cc8f50f314a62226d69ac014cbd0bd66792 (diff)
downloadcpython-998c20962ca3e2e693c1635efe76c0144dde76fc.zip
cpython-998c20962ca3e2e693c1635efe76c0144dde76fc.tar.gz
cpython-998c20962ca3e2e693c1635efe76c0144dde76fc.tar.bz2
_PyStack_UnpackDict() now returns -1 on error
Issue #29286. Change _PyStack_UnpackDict() prototype to be able to notify of failure when args is NULL.
Diffstat (limited to 'Objects/methodobject.c')
-rw-r--r--Objects/methodobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c
index 1e9ad0d..7bff6a0 100644
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -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;
}