* Apparantly, strings returned by setlocale() are not supposed to be freed/modified.
See: http://www.mkssoftware.com/docs/man3/setlocale.3.asp SVN revision: 19124
This commit is contained in:
parent
414d3e5352
commit
d6f417c8d1
|
@ -223,7 +223,7 @@ _ecore_config_db_key_data_get(Ecore_Config_DB_File *db, const char *key, int *si
|
|||
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 @@ _ecore_config_db_write(Ecore_Config_DB_File *db, Ecore_Config_Prop *e)
|
|||
if (prev_locale)
|
||||
{
|
||||
setlocale(LC_NUMERIC, prev_locale);
|
||||
free(prev_locale);
|
||||
}
|
||||
|
||||
if(val)
|
||||
|
|
Loading…
Reference in New Issue