aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-06-28 02:22:13 -0700
committerGuy Harris <gharris@sonic.net>2021-06-28 10:01:40 +0000
commit5318290a059fb27574e9c64d44b3dd80b7756d4c (patch)
tree77fa6bfabc38ef3ca689fdd420638fce43d2e571
parentc23daa12fe136ce95f5c812455b5945ebc046e05 (diff)
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 693a02e76068de331c45df191f372ac14e6686d2)
-rw-r--r--ui/qt/widgets/wireless_timeline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/widgets/wireless_timeline.cpp b/ui/qt/widgets/wireless_timeline.cpp
index 2a68cd764b..e4a1f456a4 100644
--- a/ui/qt/widgets/wireless_timeline.cpp
+++ b/ui/qt/widgets/wireless_timeline.cpp
@@ -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()));
}