From e23c06e2b03452c9aaf0dae52296c85e572f9bcd Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 1 Dec 2017 21:19:48 +0100 Subject: bpo-32030: Fix config_get_program_name() on macOS (#4669) --- Modules/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/main.c b/Modules/main.c index 6c1cf0d..6c6c801 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -894,7 +894,7 @@ config_get_program_name(_PyMainInterpreterConfig *config) return SET_DECODE_ERROR("PYTHONEXECUTABLE environment " "variable", len); } - pymain->config.program_name = buffer; + config->program_name = program_name; } #ifdef WITH_NEXT_FRAMEWORK else { @@ -909,7 +909,7 @@ config_get_program_name(_PyMainInterpreterConfig *config) return SET_DECODE_ERROR("__PYVENV_LAUNCHER__ environment " "variable", len); } - pymain->config.program_name = program_name; + config->program_name = program_name; } } #endif /* WITH_NEXT_FRAMEWORK */ -- cgit v0.12