summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2015-12-13 09:45:19 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2015-12-13 09:45:19 (GMT)
commit67dbd0d73c09821feb975208ee5be41a282a0856 (patch)
tree9900191e37aade8138169aa67e9e72e8cf18a911 /PC
parent707244736a1fa5d8ca171e5e172569d77af62e17 (diff)
parenta1d6f39997ca4577e79e03e0847098d0d0df849d (diff)
downloadcpython-67dbd0d73c09821feb975208ee5be41a282a0856.zip
cpython-67dbd0d73c09821feb975208ee5be41a282a0856.tar.gz
cpython-67dbd0d73c09821feb975208ee5be41a282a0856.tar.bz2
Fixes #25844: Merged fix from 3.5.
Diffstat (limited to 'PC')
-rw-r--r--PC/launcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/launcher.c b/PC/launcher.c
index fada4c9..e414237 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);