File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments