}
if (type == temp_cmd->type) {
- if (NULL != invocation_name)
- temp_cmd->invocation_name = strdup(invocation_name);
+ int ret = vc_cmd_set_invocation_name((vc_cmd_h)temp_cmd, invocation_name);
+ SLOG(LOG_DEBUG, vc_db_tag(), "Set invocation to command, ret(%d)", ret);
- int ret = __vc_db_insert_command(db_handle, pid, type, temp_cmd, skip_invocation);
+ ret = __vc_db_insert_command(db_handle, pid, type, temp_cmd, skip_invocation);
if (ret != VC_DB_ERROR_NONE) {
SLOG(LOG_ERROR, vc_db_tag(), "Fail to insert command, ret(%d)", ret);
return ret;