diff options
author | Guido van Rossum <guido@python.org> | 2001-09-20 19:18:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-20 19:18:30 (GMT) |
commit | 461591eb174ed0122e156606470bc6003855f7a3 (patch) | |
tree | d2d7e963b430ae962b5cc257d23ec6d21663dccb /Modules/_localemodule.c | |
parent | 3508e308613055ea28bfb766828f03cc08a6789b (diff) | |
download | cpython-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.c | 2 |
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 |