summaryrefslogtreecommitdiffstats
path: root/Objects/moduleobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-21 08:25:54 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-21 08:25:54 (GMT)
commitb57d9eac41125bc4a53a1ba9987ba776b4cc6680 (patch)
tree7dbacd56c88ba46115dbe2865c4657d9ee3702eb /Objects/moduleobject.c
parent1fb1c998b2c5e0b97aa909688793e405dfea08f0 (diff)
downloadcpython-b57d9eac41125bc4a53a1ba9987ba776b4cc6680.zip
cpython-b57d9eac41125bc4a53a1ba9987ba776b4cc6680.tar.gz
cpython-b57d9eac41125bc4a53a1ba9987ba776b4cc6680.tar.bz2
Issue #28748: Private variable _Py_PackageContext is now of type "const char *"
rather of "char *".
Diffstat (limited to 'Objects/moduleobject.c')
-rw-r--r--Objects/moduleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index 701bcb1..350f3bf 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;