diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-05 16:04:32 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-05 16:04:32 (GMT) |
commit | 7bfb42d5b7721ca26e33050d025fec5c43c00058 (patch) | |
tree | c1c91a2a34361474de2c02388c8f91d4333f2ea5 /Modules/pyexpat.c | |
parent | d77e5b7211e8daf22f2b3e0df124393bca504c38 (diff) | |
download | cpython-7bfb42d5b7721ca26e33050d025fec5c43c00058.zip cpython-7bfb42d5b7721ca26e33050d025fec5c43c00058.tar.gz cpython-7bfb42d5b7721ca26e33050d025fec5c43c00058.tar.bz2 |
Issue #28858: Remove _PyObject_CallArg1() macro
Replace
_PyObject_CallArg1(func, arg)
with
PyObject_CallFunctionObjArgs(func, arg, NULL)
Using the _PyObject_CallArg1() macro increases the usage of the C stack, which
was unexpected and unwanted. PyObject_CallFunctionObjArgs() doesn't have this
issue.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r-- | Modules/pyexpat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 541eee7..ece4d16 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -119,7 +119,7 @@ set_error(xmlparseobject *self, enum XML_Error code) XML_ErrorString(code), lineno, column); if (buffer == NULL) return NULL; - err = _PyObject_CallArg1(ErrorObject, buffer); + err = PyObject_CallFunctionObjArgs(ErrorObject, buffer, NULL); Py_DECREF(buffer); if ( err != NULL && set_error_attr(err, "code", code) |