diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-08-24 10:21:55 +0200 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-08-24 18:05:48 +0000 |
commit | 75d9167230350391222dd285ea10fb0a0e30f4bc (patch) | |
tree | 51e2dbbb8d472ece1c4c615717c07f8ab156178d /ui/qt/multicast_statistics_dialog.cpp | |
parent | 7f60878be1dfc5d1132951ef2b10b1d04fbd2675 (diff) | |
download | wireshark-75d9167230350391222dd285ea10fb0a0e30f4bc.tar.gz |
Multicast Statistics (Qt Dialog): Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Ie2802293576bf9edb28bccf7d464b5e687185096
Reviewed-on: https://code.wireshark.org/review/10223
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/multicast_statistics_dialog.cpp')
-rw-r--r-- | ui/qt/multicast_statistics_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/multicast_statistics_dialog.cpp b/ui/qt/multicast_statistics_dialog.cpp index bc046f210e..6c06ff6904 100644 --- a/ui/qt/multicast_statistics_dialog.cpp +++ b/ui/qt/multicast_statistics_dialog.cpp @@ -337,7 +337,7 @@ void MulticastStatisticsDialog::updateWidgets() } param = burst_alarm_threshold_le_->text().toInt(&ok); - if (!ok) { + if (!ok || param < 1) { hint += tr("The burst alarm threshold isn't valid. "); enable_apply = false; burst_alarm_threshold_le_->setSyntaxState(SyntaxLineEdit::Invalid); |