mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748)
This commit is contained in:
parent
5ce0a2a100
commit
4ae06c5337
15 changed files with 59 additions and 56 deletions
|
@ -910,7 +910,7 @@ calculate_init(PyCalculatePath *calculate,
|
|||
const _PyMainInterpreterConfig *main_config)
|
||||
{
|
||||
size_t len;
|
||||
char *path = getenv("PATH");
|
||||
const char *path = getenv("PATH");
|
||||
if (path) {
|
||||
calculate->path_env = Py_DecodeLocale(path, &len);
|
||||
if (!calculate->path_env) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue