bool cal_time_is_dst_savings(void)
{
char buf[128] = {0};
- ssize_t len = readlink("/opt/etc/localtime", buf, sizeof(buf) -1);
+ readlink("/opt/etc/localtime", buf, sizeof(buf) - 1);
char *timezone = buf + 20; /* /usr/share/zoneinfo/ */
return _get_dst_savings(timezone) == 0 ? false : true;
ret = cal_db_query_create_projection(query, &projection);
if (CALENDAR_ERROR_NONE != ret) {
ERR("cal_db_query_create_projection() Fail(%d)", ret);
+ g_slist_free_full(bind_text, free);
+ CAL_FREE(condition);
return ret;
}
} else {
ret = _cal_db_search_make_projection(query, &projection);
if (CALENDAR_ERROR_NONE != ret) {
ERR("_cal_db_search_make_projection() Fail(%d)", ret);
+ g_slist_free_full(bind_text, free);
+ CAL_FREE(condition);
return ret;
}
}