mirror of
https://github.com/python/cpython.git
synced 2026-06-23 03:23:38 -04:00
Add the const qualifier to "char *" variables that refer to literal strings. (#4370)
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user