summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Muraviov <smurav@mail.ru>2024-12-24 13:06:41 (GMT)
committerGitHub <noreply@github.com>2024-12-24 13:06:41 (GMT)
commit3ddd70ceaaf67b111ee4251817e150396d6d10a9 (patch)
tree76b2217346818f72064461a4b6f1113701c2c9ad
parentbd3e200cce6601684108e23e7621bbe05b53a323 (diff)
downloadcpython-3ddd70ceaaf67b111ee4251817e150396d6d10a9.zip
cpython-3ddd70ceaaf67b111ee4251817e150396d6d10a9.tar.gz
cpython-3ddd70ceaaf67b111ee4251817e150396d6d10a9.tar.bz2
gh-128217: Validate the normalized_environment variable instead of the similarly named function (GH-128220)
-rw-r--r--Modules/_winapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_winapi.c b/Modules/_winapi.c
index 4ce689f..260cab4 100644
--- a/Modules/_winapi.c
+++ b/Modules/_winapi.c
@@ -1048,7 +1048,7 @@ getenvironment(PyObject* environment)
}
normalized_environment = normalize_environment(environment);
- if (normalize_environment == NULL) {
+ if (normalized_environment == NULL) {
return NULL;
}