aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2020-01-20 10:50:15 +0000
committerAnders Broman <a.broman58@gmail.com>2020-01-20 14:07:43 +0000
commit6693067290431eec05215218d704146b245e5e2f (patch)
tree5378c4e5e479e6d1735b0541b8f70ed52d0d2eee /ui
parentdd4b562df20f720c96c8f005ee8170ccf2265dd6 (diff)
rtp_play_dialog(.cpp): avoid Dead Store false positive
Value stored to 'left' is never read Change-Id: I6d1a996427d26a2a16510ed6446749aed23cca39 Reviewed-on: https://code.wireshark.org/review/35871 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/rtp_player_dialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/rtp_player_dialog.cpp b/ui/qt/rtp_player_dialog.cpp
index 5fec4cb563..515ced5a4a 100644
--- a/ui/qt/rtp_player_dialog.cpp
+++ b/ui/qt/rtp_player_dialog.cpp
@@ -245,12 +245,11 @@ void RtpPlayerDialog::rescanPackets(bool rescale_axes)
int row_count = ui->streamTreeWidget->topLevelItemCount();
// Clear existing graphs and reset stream values
for (int row = 0; row < row_count; row++) {
- bool left, right;
+ bool left = true, right = true;
QTreeWidgetItem *ti = ui->streamTreeWidget->topLevelItem(row);
RtpAudioStream *audio_stream = ti->data(stream_data_col_, Qt::UserRole).value<RtpAudioStream*>();
channel_mode_t channel_mode = (channel_mode_t)ti->data(channel_data_col_, Qt::UserRole).toUInt();
- left = right = true;
switch (channel_mode) {
case channel_none:
left = false;