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.


(cherry picked from commit 693a02e760)
This commit is contained in:
Guy Harris 2021-06-28 02:22:13 -07:00
parent c23daa12fe
commit 5318290a05
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,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()));
}