fix may-be-used-unset warning

This commit is contained in:
Paul Davis 2022-06-21 18:34:00 -06:00
parent 5a0767bd7b
commit fc1a0140a3

View File

@ -97,6 +97,8 @@ RegionPeakCursor::set (AudioRegionView* arv, samplepos_t when, samplecnt_t sampl
s += ar->start_sample ();
PeakData p;
p.min = 0;
p.max = 0;
for (uint32_t chn = 0; chn < ar->n_channels (); ++chn) {
PeakData pc;
ar->read_peaks (&pc, 1, s, samples_per_pixel, chn, samples_per_pixel);