diff options
Diffstat (limited to 'Python/context.c')
-rw-r--r-- | Python/context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/context.c b/Python/context.c index d90ed25..3928e94 100644 --- a/Python/context.c +++ b/Python/context.c @@ -145,7 +145,8 @@ PyContextVar_Get(PyContextVar *var, PyObject *def, PyObject **val) { assert(PyContextVar_CheckExact(var)); - PyThreadState *ts = PyThreadState_Get(); + PyThreadState *ts = PyThreadState_GET(); + assert(ts != NULL); if (ts->context == NULL) { goto not_found; } |