Skip to content

Commit 03a8351

Browse files
committed
Fix vararg passing in PyErr_FormatUnraisable.
1 parent 004108d commit 03a8351

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Python/errors.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,11 @@ _PyErr_FormatUnraisable(PyThreadState *tstate, const char *format, ...)
17791779
void
17801780
PyErr_FormatUnraisable(const char *format, ...)
17811781
{
1782-
_PyErr_FormatUnraisable(_PyThreadState_GET(), format);
1782+
PyThreadState *tstate = _PyThreadState_GET();
1783+
va_list va;
1784+
va_start(va, format);
1785+
format_unraisable_v(tstate, format, va, NULL);
1786+
va_end(va);
17831787
}
17841788

17851789
static void

0 commit comments

Comments
 (0)