Skip to content

Commit c628ffc

Browse files
committed
Address code review
1 parent d12b705 commit c628ffc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/pylifecycle.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,10 @@ pycore_interp_init(PyThreadState *tstate)
863863
if (_tstate->c_stack_hard_limit == 0) {
864864
_Py_InitializeRecursionLimits(tstate);
865865
}
866+
#ifdef _Py_TIER2
867+
// Ensure the buffer is to be set as NULL for MSVC
868+
_tstate->buffer = NULL;
869+
#endif
866870
PyInterpreterState *interp = tstate->interp;
867871
PyStatus status;
868872
PyObject *sysmod = NULL;

0 commit comments

Comments
 (0)