Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_config
Modified Files:
ecore_config_db.c
Log Message:
* Apparantly, strings returned by setlocale() are not supposed to be
freed/modified.
See: http://www.mkssoftware.com/docs/man3/setlocale.3.asp
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config_db.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ecore_config_db.c 18 Dec 2005 19:07:51 -0000 1.10
+++ ecore_config_db.c 18 Dec 2005 23:08:57 -0000 1.11
@@ -223,7 +223,7 @@
void
_ecore_config_db_write(Ecore_Config_DB_File *db, Ecore_Config_Prop *e)
{
- char *prev_locale;
+ char *prev_locale= NULL;
char *val = NULL;
char *r = NULL;
int num;
@@ -257,7 +257,6 @@
if (prev_locale)
{
setlocale(LC_NUMERIC, prev_locale);
- free(prev_locale);
}
if(val)
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs