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.
This commit is contained in:
Guy Harris 2021-06-28 02:22:13 -07:00 committed by Wireshark GitLab Utility
parent 20491ae1d6
commit 693a02e760
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ WirelessTimeline::WirelessTimeline(QWidget *parent) : QWidget(parent)
last = NULL; last = NULL;
capfile = 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())); connect(wsApp, SIGNAL(appInitialized()), this, SLOT(appInitialized()));
} }