From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 24 Dec 2024 13:25:16 +0000 (+0100) Subject: gh-128217: Validate the normalized_environment variable instead of the similarly... X-Git-Tag: v3.12.9~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7f8ba7444a8e77fa9266a3f66988efa85f06898;p=thirdparty%2FPython%2Fcpython.git gh-128217: Validate the normalized_environment variable instead of the similarly named function (GH-128220) (cherry picked from commit 3ddd70ceaaf67b111ee4251817e150396d6d10a9) Co-authored-by: Sergey Muraviov --- diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 76f18c71a071..ac3ee113ffda 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -946,7 +946,7 @@ getenvironment(PyObject* environment) } normalized_environment = normalize_environment(environment); - if (normalize_environment == NULL) { + if (normalized_environment == NULL) { return NULL; }