From e2f92de6a90ae11a6d8e01bd17fd88b005516835 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 11 Nov 2017 13:06:26 +0200 Subject: Add the const qualifier to "char *" variables that refer to literal strings. (#4370) --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/bltinmodule.c') 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; -- cgit v1.2.1