summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-17 13:19:28 (GMT)
committerGitHub <noreply@github.com>2022-06-17 13:19:28 (GMT)
commit17357108732c731d6ed4f2bd123ee6ba1ff6891b (patch)
tree397113da596c3a246d6022324123933d613316ba /Python/pystate.c
parentc5b750dc0b4d4e58047c9d93c635fa26b06562f7 (diff)
downloadcpython-17357108732c731d6ed4f2bd123ee6ba1ff6891b.zip
cpython-17357108732c731d6ed4f2bd123ee6ba1ff6891b.tar.gz
cpython-17357108732c731d6ed4f2bd123ee6ba1ff6891b.tar.bz2
gh-77782: Py_FdIsInteractive() now uses PyConfig.interactive (#93916)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index df56c05..3cc7613 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -2136,6 +2136,7 @@ _Py_GetConfig(void)
{
assert(PyGILState_Check());
PyThreadState *tstate = _PyThreadState_GET();
+ _Py_EnsureTstateNotNULL(tstate);
return _PyInterpreterState_GetConfig(tstate->interp);
}