summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2020-02-29 22:08:04 (GMT)
committerGitHub <noreply@github.com>2020-02-29 22:08:04 (GMT)
commitfec6681f7ae3e8867bd0446aa993a0b5f23045f9 (patch)
tree20048ce2fd81a4be520fc8ad8dab02cb908580aa /Modules/_decimal
parent70d7a62c7c8fd6baabf1e13c33773db79db7a9f4 (diff)
downloadcpython-fec6681f7ae3e8867bd0446aa993a0b5f23045f9.zip
cpython-fec6681f7ae3e8867bd0446aa993a0b5f23045f9.tar.gz
cpython-fec6681f7ae3e8867bd0446aa993a0b5f23045f9.tar.bz2
[3.8] Explicitly initialize like the surrounding code (GH-18717)
Diffstat (limited to 'Modules/_decimal')
-rw-r--r--Modules/_decimal/_decimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
index 4358c4d..df7c6e2 100644
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -128,7 +128,7 @@ static PyObject *tls_context_key = NULL;
/* Invariant: NULL or the most recently accessed thread local context */
static PyDecContextObject *cached_context = NULL;
#else
-static PyObject *current_context_var;
+static PyObject *current_context_var = NULL;
#endif
/* Template for creating new thread contexts, calling Context() without