From 693a02e76068de331c45df191f372ac14e6686d2 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 28 Jun 2021 02:22:13 -0700 Subject: [PATCH] wireless_timeline: make sure the hash table is always allocated. At least on my Mac, if I start up Wireshark, start a capture (non-monitor-mode) on the Wi-Fi adapter, add a comment to the SHB and the first packet while it's capturing, stop the capture, and try to save it, it warns that the wireless timeline hash table pointer is null. Allocate it in the constructor. --- ui/qt/widgets/wireless_timeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/qt/widgets/wireless_timeline.cpp b/ui/qt/widgets/wireless_timeline.cpp index eef8b8562e..25715e37fb 100644 --- a/ui/qt/widgets/wireless_timeline.cpp +++ b/ui/qt/widgets/wireless_timeline.cpp @@ -328,7 +328,7 @@ WirelessTimeline::WirelessTimeline(QWidget *parent) : QWidget(parent) last = NULL; capfile = NULL; - radio_packet_list = NULL; + radio_packet_list = g_hash_table_new(g_direct_hash, g_direct_equal); connect(wsApp, SIGNAL(appInitialized()), this, SLOT(appInitialized())); }