{
int len = 0;
int y, m, d, h, min, s;
- char c, z;
if (NULL == q || NULL == caltime)
{
for (i = 0; i < len; i++)
{
DBG("get string[%s]", t[i]);
- if (!strncmp(t[i], "TZID=", strlen("TZID=")))
+ if (!strncmp(t[i], "TZID=", strlen("TZID=")) && NULL == str_tzid)
{
str_tzid = __cal_vcalendar_parse_dtstart_tzid(t[i]);
DBG("str_tzid[%s]", str_tzid);
break;
}
}
+
if (strlen(buf_by) > 0)
{
DBG("bystr[%s]", buf_by);
ret = _cal_record_set_str(record, byint, buf_by);
}
+ CAL_FREE(r);
g_strfreev(t);
return CALENDAR_ERROR_NONE;
}
for (i = 0; i < len; i++)
{
DBG("get string[%s]", t[i]);
- if (!strncmp(t[i], "TZID=", strlen("TZID=")))
+ if (!strncmp(t[i], "TZID=", strlen("TZID=")) && NULL == str_tzid)
{
str_tzid = __cal_vcalendar_parse_dtstart_tzid(t[i]);
DBG("str_tzid[%s]", str_tzid);