diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-12-13 09:44:15 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2015-12-13 09:44:15 (GMT) |
commit | a1d6f39997ca4577e79e03e0847098d0d0df849d (patch) | |
tree | 7a37efa6beed5fbea84675f4bab36b7091cb6a94 /PC/launcher.c | |
parent | 1a316e82f658868a1698ef167f62a49048b36685 (diff) | |
parent | abeb6479bd59c998fc5e78ba70f300eec9da90ee (diff) | |
download | cpython-a1d6f39997ca4577e79e03e0847098d0d0df849d.zip cpython-a1d6f39997ca4577e79e03e0847098d0d0df849d.tar.gz cpython-a1d6f39997ca4577e79e03e0847098d0d0df849d.tar.bz2 |
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 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); |