diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-11 13:06:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 13:06:26 +0200 |
commit | e2f92de6a90ae11a6d8e01bd17fd88b005516835 (patch) | |
tree | a5bc255a98f488e5ecf195dc3f55665e9afecc47 /Python/bltinmodule.c | |
parent | e184cfd7bf8bcfd160e3b611d4351ca3ce52d9e2 (diff) | |
download | cpython-git-e2f92de6a90ae11a6d8e01bd17fd88b005516835.tar.gz |
Add the const qualifier to "char *" variables that refer to literal strings. (#4370)
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 6215a638c9..8eac0af352 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1942,7 +1942,7 @@ builtin_input_impl(PyObject *module, PyObject *prompt) /* If we're interactive, use (GNU) readline */ if (tty) { PyObject *po = NULL; - char *promptstr; + const char *promptstr; char *s = NULL; PyObject *stdin_encoding = NULL, *stdin_errors = NULL; PyObject *stdout_encoding = NULL, *stdout_errors = NULL; |