]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-128217: Validate the normalized_environment variable instead of the similarly...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 Dec 2024 13:25:16 +0000 (14:25 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Dec 2024 13:25:16 +0000 (13:25 +0000)
(cherry picked from commit 3ddd70ceaaf67b111ee4251817e150396d6d10a9)

Co-authored-by: Sergey Muraviov <smurav@mail.ru>
Modules/_winapi.c

index 76f18c71a0713d6f54183507006ba67513a4c3ca..ac3ee113ffda71283c03c440ee237de0042455e1 100644 (file)
@@ -946,7 +946,7 @@ getenvironment(PyObject* environment)
     }
 
     normalized_environment = normalize_environment(environment);
-    if (normalize_environment == NULL) {
+    if (normalized_environment == NULL) {
         return NULL;
     }