[Python-checkins] CVS: python/dist/src/Modules _localemodule.c,2.23,2.24
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 20 Sep 2001 12:18:32 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv5031
Modified Files:
_localemodule.c
Log Message:
PyLocale_setlocale(): silence compiler warning about free() of a const
char *.
Index: _localemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_localemodule.c,v
retrieving revision 2.23
retrieving revision 2.24
diff -C2 -d -r2.23 -r2.24
*** _localemodule.c 2001/09/05 17:09:48 2.23
--- _localemodule.c 2001/09/20 19:18:30 2.24
***************
*** 216,220 ****
/* Release previous file encoding */
if (Py_FileSystemDefaultEncoding)
! free (Py_FileSystemDefaultEncoding);
Py_FileSystemDefaultEncoding = strdup(codeset);
Py_DECREF(enc);
--- 216,220 ----
/* Release previous file encoding */
if (Py_FileSystemDefaultEncoding)
! free((char *)Py_FileSystemDefaultEncoding);
Py_FileSystemDefaultEncoding = strdup(codeset);
Py_DECREF(enc);