Skip to content

Commit fec6681

Browse files
author
Stefan Krah
authored
[3.8] Explicitly initialize like the surrounding code (GH-18717)
1 parent 70d7a62 commit fec6681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_decimal/_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static PyObject *tls_context_key = NULL;
128128
/* Invariant: NULL or the most recently accessed thread local context */
129129
static PyDecContextObject *cached_context = NULL;
130130
#else
131-
static PyObject *current_context_var;
131+
static PyObject *current_context_var = NULL;
132132
#endif
133133

134134
/* Template for creating new thread contexts, calling Context() without

0 commit comments

Comments
 (0)