Commit e23c06e2 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-32030: Fix config_get_program_name() on macOS (#4669)

parent 0ea395ae
...@@ -894,7 +894,7 @@ config_get_program_name(_PyMainInterpreterConfig *config) ...@@ -894,7 +894,7 @@ config_get_program_name(_PyMainInterpreterConfig *config)
return SET_DECODE_ERROR("PYTHONEXECUTABLE environment " return SET_DECODE_ERROR("PYTHONEXECUTABLE environment "
"variable", len); "variable", len);
} }
pymain->config.program_name = buffer; config->program_name = program_name;
} }
#ifdef WITH_NEXT_FRAMEWORK #ifdef WITH_NEXT_FRAMEWORK
else { else {
...@@ -909,7 +909,7 @@ config_get_program_name(_PyMainInterpreterConfig *config) ...@@ -909,7 +909,7 @@ config_get_program_name(_PyMainInterpreterConfig *config)
return SET_DECODE_ERROR("__PYVENV_LAUNCHER__ environment " return SET_DECODE_ERROR("__PYVENV_LAUNCHER__ environment "
"variable", len); "variable", len);
} }
pymain->config.program_name = program_name; config->program_name = program_name;
} }
} }
#endif /* WITH_NEXT_FRAMEWORK */ #endif /* WITH_NEXT_FRAMEWORK */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment