summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2015-12-13 09:44:15 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2015-12-13 09:44:15 +0000
commita1d6f39997ca4577e79e03e0847098d0d0df849d (patch)
tree7a37efa6beed5fbea84675f4bab36b7091cb6a94 /PC/launcher.c
parentSync asyncio with upstream git repo (conditional import in test_pep492.py). (diff)
parentFixes #25844: Corrected =/== typo potentially leading to crash in launcher. (diff)
downloadcpython-a1d6f39997ca4577e79e03e0847098d0d0df849d.tar.gz
cpython-a1d6f39997ca4577e79e03e0847098d0d0df849d.tar.bz2
cpython-a1d6f39997ca4577e79e03e0847098d0d0df849d.zip
Fixes #25844: Corrected =/== typo potentially leading to crash in launcher.
Diffstat (limited to 'PC/launcher.c')
-rw-r--r--PC/launcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/launcher.c b/PC/launcher.c
index fada4c9c16a..e414237feab 100644
--- a/PC/launcher.c
+++ b/PC/launcher.c
@@ -114,7 +114,7 @@ static wchar_t * get_env(wchar_t * key)
if (result >= BUFSIZE) {
/* Large environment variable. Accept some leakage */
wchar_t *buf2 = (wchar_t*)malloc(sizeof(wchar_t) * (result+1));
- if (buf2 = NULL) {
+ if (buf2 == NULL) {
error(RC_NO_MEMORY, L"Could not allocate environment buffer");
}
GetEnvironmentVariableW(key, buf2, result);