ERR("Failed to remove CAL_DB_SHM_FILE");
if (remove(CAL_DB_WAL_FILE) != 0)
ERR("Failed to remove CAL_DB_WAL_FILE");
- if (remove(CAL_DB_FILE))
+ if (remove(CAL_DB_FILE) !=0)
ERR("Failed to remove CAL_DB_FILE");
need_to_remove = false;
/* LCOV_EXCL_STOP */
/* make: projection */
ret = cal_db_query_create_projection(query, &projection);
- if (ret = CALENDAR_ERROR_NONE)
+ if (ret != CALENDAR_ERROR_NONE)
ERR("cal_db_query_create_projection() Fail(%d) \n", ret);
char *query_str = NULL;
/* order */
char *order = NULL;
ret = cal_db_query_create_order(query, condition, &order);
- if (ret = CALENDAR_ERROR_NONE)
+ if (ret != CALENDAR_ERROR_NONE)
ERR("cal_db_query_create_order() Fail(%d) \n", ret);
if (order) {
cal_db_append_string(&query_str, order);