Add the const qualifier to "char *" variables that refer to literal strings. (#4370)

This commit is contained in:
Serhiy Storchaka 2017-11-11 13:06:26 +02:00 committed by GitHub
parent e184cfd7bf
commit e2f92de6a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 46 additions and 41 deletions

View file

@ -1550,7 +1550,7 @@ static PyObject *
pysqlite_connection_exit(pysqlite_Connection* self, PyObject* args)
{
PyObject* exc_type, *exc_value, *exc_tb;
char* method_name;
const char* method_name;
PyObject* result;
if (!PyArg_ParseTuple(args, "OOO", &exc_type, &exc_value, &exc_tb)) {