Skip to content

Commit 45774d2

Browse files
committed
Add assert(callable != NULL) in _PyObject_CallMethodFormat
1 parent 77effbc commit 45774d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/call.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@ _Py_COMP_DIAG_POP
729729
PyObject * _PyObject_CallMethodFormat(PyThreadState *tstate, PyObject *callable,
730730
const char *format, ...)
731731
{
732+
assert(callable != NULL);
732733
va_list va;
733734
va_start(va, format);
734735
PyObject *retval = callmethod(tstate, callable, format, va);

0 commit comments

Comments
 (0)