From 51692eaaee46f0ab37084e0144508a44ab3667d1 Mon Sep 17 00:00:00 2001 From: Sergey Muraviov Date: Tue, 24 Dec 2024 16:06:41 +0300 Subject: [PATCH] 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 --- Modules/_winapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 76f18c71a0713d..ac3ee113ffda71 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; }