diff options
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 82d2999..deead3a 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -260,6 +260,8 @@ profile_trampoline(PyObject *self, PyFrameObject *frame, PyThreadState *tstate = frame->f_tstate; PyObject *result; + if (arg == NULL) + arg = Py_None; result = call_trampoline(tstate, self, frame, what, arg); if (result == NULL) { PyEval_SetProfile(NULL, NULL); |