From: Stefan Krah Date: Sat, 29 Feb 2020 22:08:04 +0000 (+0100) Subject: [3.8] Explicitly initialize like the surrounding code (GH-18717) X-Git-Tag: v3.8.3rc1~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fec6681f7ae3e8867bd0446aa993a0b5f23045f9;p=thirdparty%2FPython%2Fcpython.git [3.8] Explicitly initialize like the surrounding code (GH-18717) --- diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 4358c4d68675..df7c6e254bcf 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