summaryrefslogtreecommitdiffstats
path: root/Modules/getpath.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-12-12 11:55:04 (GMT)
committerGitHub <noreply@github.com>2017-12-12 11:55:04 (GMT)
commit4ae06c5337e01bdde28bce57b6b9166ad50947e3 (patch)
tree5e9e92f616bc452eb4096b56ea373fa8b46d2510 /Modules/getpath.c
parent5ce0a2a100909104836f53a2c8823006ec46f8ad (diff)
downloadcpython-4ae06c5337e01bdde28bce57b6b9166ad50947e3.zip
cpython-4ae06c5337e01bdde28bce57b6b9166ad50947e3.tar.gz
cpython-4ae06c5337e01bdde28bce57b6b9166ad50947e3.tar.bz2
bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748)
Diffstat (limited to 'Modules/getpath.c')
-rw-r--r--Modules/getpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index fc2b544..11babf0 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -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) {