diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-12-13 09:44:15 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-12-13 09:44:15 +0000 |
commit | a1d6f39997ca4577e79e03e0847098d0d0df849d (patch) | |
tree | 7a37efa6beed5fbea84675f4bab36b7091cb6a94 /PC/launcher.c | |
parent | Sync asyncio with upstream git repo (conditional import in test_pep492.py). (diff) | |
parent | Fixes #25844: Corrected =/== typo potentially leading to crash in launcher. (diff) | |
download | cpython-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.c | 2 |
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); |