#endif
static const char default_rtc0[] = "/dev/rtc0";
static const char default_rtc1[] = "/dev/rtc1";
-static const char default_localtime[18];
static const time_t default_time = 2147483645; // max(32bit) -3sec
static Ecore_Fd_Handler *tfdh = NULL; // tfd change noti
struct stat sts;
time_t now;
struct tm *ts;
- strcpy(default_localtime, tzplatform_mkpath(TZ_SYS_ETC, "localtime"));
- const char *sympath = default_localtime;
+ const char *sympath, *tzpath;
if (str == NULL)
return -1;
- const char *tzpath = str;
+
+ tzpath = str;
+ sympath = tzplatform_mkpath(TZ_SYS_ETC, "localtime");
_D("TZPATH = %s\n", tzpath);