summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-21 10:25:54 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-21 10:25:54 +0200
commit872753000c7f8c55b0da6316c9c957d909cc95e3 (patch)
treeb153421b7d20006a96bfce7353d94ba807bd6888 /Objects
parent0b16d888bbc0b606c1fc5be27feb730cc91e19ec (diff)
downloadcpython-872753000c7f8c55b0da6316c9c957d909cc95e3.tar.gz
Issue #28748: Private variable _Py_PackageContext is now of type "const char *"
rather of "char *".
Diffstat (limited to 'Objects')
-rw-r--r--Objects/moduleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index 701bcb1df3..350f3bfe3a 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -188,7 +188,7 @@ PyModule_Create2(struct PyModuleDef* module, int module_api_version)
(if the name actually matches).
*/
if (_Py_PackageContext != NULL) {
- char *p = strrchr(_Py_PackageContext, '.');
+ const char *p = strrchr(_Py_PackageContext, '.');
if (p != NULL && strcmp(module->m_name, p+1) == 0) {
name = _Py_PackageContext;
_Py_PackageContext = NULL;