mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Benjamin Peterson's patch to fix bug 3661, sys.call_tracing segfaults.
This commit is contained in:
parent
460ce2abf7
commit
e94a37f3a1
2 changed files with 4 additions and 1 deletions
|
@ -783,7 +783,7 @@ static PyObject *
|
|||
sys_call_tracing(PyObject *self, PyObject *args)
|
||||
{
|
||||
PyObject *func, *funcargs;
|
||||
if (!PyArg_UnpackTuple(args, "call_tracing", 2, 2, &func, &funcargs))
|
||||
if (!PyArg_ParseTuple(args, "OO!:call_tracing", &func, &PyTuple_Type, &funcargs))
|
||||
return NULL;
|
||||
return _PyEval_CallTracing(func, funcargs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue