mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
PyLocale_setlocale(): silence compiler warning about free() of a const
char *.
This commit is contained in:
parent
3508e30861
commit
461591eb17
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue