summaryrefslogtreecommitdiff
path: root/PC/launcher.c
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
parent1a316e82f658868a1698ef167f62a49048b36685 (diff)
parentabeb6479bd59c998fc5e78ba70f300eec9da90ee (diff)
downloadcpython-git-a1d6f39997ca4577e79e03e0847098d0d0df849d.tar.gz
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 fada4c9c16..e414237fea 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);