int command_len = strlen("tar xvfp \"") + strlen(input_file_path) + strlen("\" -C ") + strlen(output_direcory_path) +strlen(" delta.ua")+ 1;
int len = 0;
command = (char *)calloc(command_len, sizeof(char));
- memset(command, 0, sizeof(char)*command_len);
- if (command == NULL)
+ if (command == NULL) {
return SYNC_AGENT_UTIL_COMPRESS_FAIL;
+ } else {
+ memset(command, 0, sizeof(char)*command_len);
+ }
len = g_strlcat(command, "tar xvfp \"", command_len);
len = g_strlcat(command, input_file_path, command_len);
int command_len = strlen("mv \"") + strlen(input_file_path) + strlen("\" ") + strlen(output_direcory_path) +strlen("/delta.tar")+ 1;
int len = 0;
command = (char *)calloc(command_len, sizeof(char));
- memset(command, 0, sizeof(char)*command_len);
- if (command == NULL)
+ if (command == NULL) {
return SYNC_AGENT_UTIL_COMPRESS_FAIL;
+ } else {
+ memset(command, 0, sizeof(char)*command_len);
+ }
len = g_strlcat(command, "mv \"", command_len);
len = g_strlcat(command, input_file_path, command_len);
char *temp_agent_data = NULL;
_DEBUG_INFO("converter start");
- service_ret = calendar_list_create(&list);
- goto_if(service_ret != CALENDAR_ERROR_NONE, "[vcalendar-task] calendar_list_create() Fail!: err[%d]", service_ret);
+ //service_ret = calendar_list_create(&list);
+ //goto_if(service_ret != CALENDAR_ERROR_NONE, "[vcalendar-task] calendar_list_create() Fail!: err[%d]", service_ret);
// 1. extended vcalendar version : it should be excuted before calendar_vcalendar_make_from_records
list = set_vcalendar_version(temp_service_data);