diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-12-12 13:55:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 13:55:04 +0200 |
commit | 4ae06c5337e01bdde28bce57b6b9166ad50947e3 (patch) | |
tree | 5e9e92f616bc452eb4096b56ea373fa8b46d2510 /Python/dynamic_annotations.c | |
parent | 5ce0a2a100909104836f53a2c8823006ec46f8ad (diff) | |
download | cpython-git-4ae06c5337e01bdde28bce57b6b9166ad50947e3.tar.gz |
bpo-32241: Add the const qualifire to declarations of umodifiable strings. (#4748)
Diffstat (limited to 'Python/dynamic_annotations.c')
-rw-r--r-- | Python/dynamic_annotations.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/dynamic_annotations.c b/Python/dynamic_annotations.c index 10511da466..7febaa09df 100644 --- a/Python/dynamic_annotations.c +++ b/Python/dynamic_annotations.c @@ -120,7 +120,7 @@ static int GetRunningOnValgrind(void) { #endif #ifndef _MSC_VER - char *running_on_valgrind_str = getenv("RUNNING_ON_VALGRIND"); + const char *running_on_valgrind_str = getenv("RUNNING_ON_VALGRIND"); if (running_on_valgrind_str) { return strcmp(running_on_valgrind_str, "0") != 0; } |