Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9812af8 commit 0ff0f54Copy full SHA for 0ff0f54
1 file changed
Python/ceval.c
@@ -4171,10 +4171,15 @@ call_function(PyObject ***pp_stack, int oparg
4171
else {
4172
PyObject *callargs;
4173
callargs = load_args(pp_stack, na);
4174
- READ_TIMESTAMP(*pintr0);
4175
- C_TRACE(x, PyCFunction_Call(func,callargs,NULL));
4176
- READ_TIMESTAMP(*pintr1);
4177
- Py_XDECREF(callargs);
+ if (callargs != NULL) {
+ READ_TIMESTAMP(*pintr0);
+ C_TRACE(x, PyCFunction_Call(func,callargs,NULL));
+ READ_TIMESTAMP(*pintr1);
4178
+ Py_XDECREF(callargs);
4179
+ }
4180
+ else {
4181
+ x = NULL;
4182
4183
}
4184
} else {
4185
if (PyMethod_Check(func) && PyMethod_GET_SELF(func) != NULL) {
0 commit comments