]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-128217: Validate the normalized_environment variable instead of the similarly...
authorSergey Muraviov <smurav@mail.ru>
Tue, 24 Dec 2024 13:06:41 +0000 (16:06 +0300)
committerGitHub <noreply@github.com>
Tue, 24 Dec 2024 13:06:41 +0000 (13:06 +0000)
Modules/_winapi.c

index 4ce689fe30e6df52bf3e954f56047bd26515eb2c..260cab48091c16e342ce606d850f6a94fd9e5300 100644 (file)
@@ -1048,7 +1048,7 @@ getenvironment(PyObject* environment)
     }
 
     normalized_environment = normalize_environment(environment);
-    if (normalize_environment == NULL) {
+    if (normalized_environment == NULL) {
         return NULL;
     }