aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-07-07 22:35:30 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-07-08 07:01:20 +0000
commit03ca5c0f6ef256c88f10b5c1580467333ab703c1 (patch)
treeeaf3fd596942827e8431ba56c939a899ed93f269
parentd83ee1db2172ccc58606a2dc251149bac28ed3dd (diff)
Qt: add initializers (CID 1317257).
Change-Id: I61a63c187990b119b62e99871832913a0e3f75e4 Reviewed-on: https://code.wireshark.org/review/16323 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--ui/qt/multicast_statistics_dialog.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/ui/qt/multicast_statistics_dialog.cpp b/ui/qt/multicast_statistics_dialog.cpp
index 931a0dd..4d9ee65 100644
--- a/ui/qt/multicast_statistics_dialog.cpp
+++ b/ui/qt/multicast_statistics_dialog.cpp
@@ -55,8 +55,18 @@ public:
MulticastStatTreeWidgetItem(QTreeWidget *parent) :
QTreeWidgetItem (parent, mcast_table_type_)
{
- memset(&src_addr_, 0, sizeof(src_addr_));
- memset(&dst_addr_, 0, sizeof(dst_addr_));
+ clear_address(&src_addr_);
+ clear_address(&dst_addr_);
+ src_port_ = 0;
+ dst_port_ = 0;
+ num_packets_ = 0;
+ avg_pps_ = 0;
+ avg_bw_ = 0;
+ max_bw_ = 0;
+ top_burst_size_ = 0;
+ num_bursts_ = 0;
+ top_buff_usage_ = 0;
+ num_buff_alarms_ = 0;
}
void updateStreamInfo(const mcast_stream_info_t *stream_info) {