https://github.com/python/cpython/commit/e7f8ba7444a8e77fa9266a3f66988efa85f06898
commit: e7f8ba7444a8e77fa9266a3f66988efa85f06898
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: zooba <[email protected]>
date: 2024-12-24T13:25:16Z
summary:

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 <[email protected]>

files:
M Modules/_winapi.c

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;
     }
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to