Commit 461591eb authored by Guido van Rossum's avatar Guido van Rossum

PyLocale_setlocale(): silence compiler warning about free() of a const

char *.
parent 3508e308
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment