Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 20ee2e3

Browse filesBrowse files
committed
Fix warnings
1 parent 2f8eaab commit 20ee2e3
Copy full SHA for 20ee2e3

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎MySQLdb/_mysql.c

Copy file name to clipboardExpand all lines: MySQLdb/_mysql.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ _mysql_ConnectionObject_Initialize(
367367
MYSQL *conn = NULL;
368368
PyObject *conv = NULL;
369369
PyObject *ssl = NULL;
370-
char *key = NULL, *cert = NULL, *ca = NULL,
370+
const char *key = NULL, *cert = NULL, *ca = NULL,
371371
*capath = NULL, *cipher = NULL;
372372
PyObject *ssl_keepref[5] = {NULL};
373373
int n_ssl_keepref = 0;
@@ -2335,7 +2335,7 @@ _mysql_ConnectionObject_getattro(
23352335
_mysql_ConnectionObject *self,
23362336
PyObject *name)
23372337
{
2338-
char *cname;
2338+
const char *cname;
23392339
#ifdef IS_PY3K
23402340
cname = PyUnicode_AsUTF8(name);
23412341
#else

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.