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:
parent
20491ae1d6
commit
693a02e760
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue