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/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 17ec182b74..3d63186a36 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1300,7 +1300,7 @@ err_input(perrdetail *err) { PyObject *v, *w, *errtype, *errtext; PyObject *msg_obj = NULL; - char *msg = NULL; + const char *msg = NULL; int offset = err->offset; errtype = PyExc_SyntaxError; -- cgit v1.2.1