aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2019-08-19 18:09:57 +0200
committerGerald Combs <gerald@wireshark.org>2019-08-19 19:59:13 +0000
commit437025e7c3f73b1bd586303b8d8a5c5943d5a566 (patch)
tree6c2155a7e16869eb027e64a39505909749ef2a08 /ui
parent0fc5bf30a2daa7e3e0f1285ba808ebbe0625b54f (diff)
Qt: Initialize PacketListHeader member variables
Coverity CID 1446258 Change-Id: Iffadb8be97dd6dbd75a97869cea54398eec16554 Reviewed-on: https://code.wireshark.org/review/34324 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/widgets/packet_list_header.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/widgets/packet_list_header.cpp b/ui/qt/widgets/packet_list_header.cpp
index a6a0bb0012..ad60cfdaba 100644
--- a/ui/qt/widgets/packet_list_header.cpp
+++ b/ui/qt/widgets/packet_list_header.cpp
@@ -28,7 +28,9 @@
PacketListHeader::PacketListHeader(Qt::Orientation orientation, capture_file * cap_file, QWidget *parent) :
QHeaderView(orientation, parent),
- cap_file_(cap_file)
+ cap_file_(cap_file),
+ sectionIdx(-1),
+ lastSize(-1)
{
setAcceptDrops(true);
setSectionsMovable(true);