Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51af4734 authored by Zero Liu's avatar Zero Liu Committed by huirong liao
Browse files

Fix coverity scan issue: uninitialized scalar variable

[Description]
Issue type: uninitialized scalar variable

Bug: 247905252
Test: a2dp function pass

Change-Id: I8d4ae4b9ffea80eab43b7876ea63aa01ed0f2b25
parent bdabe356
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -738,6 +738,9 @@ int adev_open_output_stream(struct audio_hw_device* dev,
  out->stream_out_.resume = out_resume;
  out->stream_out_.get_presentation_position = out_get_presentation_position;
  out->stream_out_.update_source_metadata = out_update_source_metadata;
  /** Fix Coverity Scan Issue @{ */
  out->channel_mask_ = AUDIO_CHANNEL_NONE;
  /** @} */

  if (!out->bluetooth_output_->LoadAudioConfig(config)) {
    LOG(ERROR) << __func__ << ": state=" << out->bluetooth_output_->GetState()