summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-20 19:18:30 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-20 19:18:30 (GMT)
commit461591eb174ed0122e156606470bc6003855f7a3 (patch)
treed2d7e963b430ae962b5cc257d23ec6d21663dccb /Modules/_localemodule.c
parent3508e308613055ea28bfb766828f03cc08a6789b (diff)
downloadcpython-461591eb174ed0122e156606470bc6003855f7a3.zip
cpython-461591eb174ed0122e156606470bc6003855f7a3.tar.gz
cpython-461591eb174ed0122e156606470bc6003855f7a3.tar.bz2
PyLocale_setlocale(): silence compiler warning about free() of a const
char *.
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r--Modules/_localemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index a3a1d12..61a5c7c 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -215,7 +215,7 @@ PyLocale_setlocale(PyObject* self, PyObject* args)
if (*codeset && (enc = PyCodec_Encoder(codeset))) {
/* Release previous file encoding */
if (Py_FileSystemDefaultEncoding)
- free (Py_FileSystemDefaultEncoding);
+ free((char *)Py_FileSystemDefaultEncoding);
Py_FileSystemDefaultEncoding = strdup(codeset);
Py_DECREF(enc);
} else