mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Add the const qualifier to "char *" variables that refer to literal strings. (#4370)
This commit is contained in:
parent
e184cfd7bf
commit
e2f92de6a9
23 changed files with 46 additions and 41 deletions
|
|
@ -312,7 +312,7 @@ static int
|
|||
run_file(FILE *fp, const wchar_t *filename, PyCompilerFlags *p_cf)
|
||||
{
|
||||
PyObject *unicode, *bytes = NULL;
|
||||
char *filename_str;
|
||||
const char *filename_str;
|
||||
int run;
|
||||
|
||||
/* call pending calls like signal handlers (SIGINT) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue