if (private_module->use_hal_tdm) {
hal_tdm_value hvalue;
ret = (tdm_error)hal_tdm_output_get_property(private_output->output_backend, id, &hvalue);
- memcpy(value->ptr, &hvalue.ptr, sizeof(tdm_value));
+ if (ret == TDM_ERROR_NONE)
+ memcpy(&value->ptr, &hvalue.ptr, sizeof(tdm_value));
} else {
func_output = &private_module->func_output;