]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.8] Explicitly initialize like the surrounding code (GH-18717) 18723/head
authorStefan Krah <skrah@bytereef.org>
Sat, 29 Feb 2020 22:08:04 +0000 (23:08 +0100)
committerGitHub <noreply@github.com>
Sat, 29 Feb 2020 22:08:04 +0000 (23:08 +0100)
Modules/_decimal/_decimal.c

index 4358c4d686758d6e00b1a2619836ba311856bc4d..df7c6e254bcf29f863886dc5038c4dcc215c6f5f 100644 (file)
@@ -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