- https://review.tizen.org/gerrit/#/c/platform/upstream/efl/+/194095/
- setlocale(LC_NUMERIC, NULL) returns char* and this value will be changed again when setlocale called
- So, update the lc_numeric value at specific timing, it should copid as string.
Change-Id: I7fe5a222634641825e638670220defa86cb41c72
else
{
char* lc_numeric = setlocale(LC_NUMERIC, NULL);
+ char* old_numeric = lc_numeric? strdup(lc_numeric) : NULL;
setlocale(LC_NUMERIC, "C");
_tizen_api_version = atof(temp);
- setlocale(LC_NUMERIC, lc_numeric);
+ if(old_numeric)
+ {
+ setlocale(LC_NUMERIC, old_numeric);
+ free(old_numeric);
+ }
INF("TIZEN_API_VERSION: %lf, Environment variable: %s\n", _tizen_api_version, temp);
if (_tizen_api_version < 2.4)
{