Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abeb647

Browse files
committed
Fixes #25844: Corrected =/== typo potentially leading to crash in launcher.
1 parent 0ac3a0c commit abeb647

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PC/launcher.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static wchar_t * get_env(wchar_t * key)
114114
if (result >= BUFSIZE) {
115115
/* Large environment variable. Accept some leakage */
116116
wchar_t *buf2 = (wchar_t*)malloc(sizeof(wchar_t) * (result+1));
117-
if (buf2 = NULL) {
117+
if (buf2 == NULL) {
118118
error(RC_NO_MEMORY, L"Could not allocate environment buffer");
119119
}
120120
GetEnvironmentVariableW(key, buf2, result);
@@ -1219,7 +1219,7 @@ path '%s'", command);
12191219
* is no version specification.
12201220
*/
12211221
debug(L"searching PATH for python executable\n");
1222-
cmd = find_on_path(L"python");
1222+
cmd = find_on_path(PYTHON_EXECUTABLE);
12231223
debug(L"Python on path: %s\n", cmd ? cmd->value : L"<not found>");
12241224
if (cmd) {
12251225
debug(L"located python on PATH: %s\n", cmd->value);

0 commit comments

Comments
 (0)