diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-12-01 20:19:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-01 20:19:48 (GMT) |
commit | e23c06e2b03452c9aaf0dae52296c85e572f9bcd (patch) | |
tree | 669f615c1f715db0f4fe02f2bcc607ca1f75016d | |
parent | 0ea395ae964c9cd0f499e2ef0d0030c971201220 (diff) | |
download | cpython-e23c06e2b03452c9aaf0dae52296c85e572f9bcd.zip cpython-e23c06e2b03452c9aaf0dae52296c85e572f9bcd.tar.gz cpython-e23c06e2b03452c9aaf0dae52296c85e572f9bcd.tar.bz2 |
bpo-32030: Fix config_get_program_name() on macOS (#4669)
-rw-r--r-- | Modules/main.c | 4 |
1 files 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 */ |