aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-05-27 06:52:32 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-05-27 06:52:32 +0000
commita4df6439a3c89cb45b115dea56299a439cfac945 (patch)
treefb3b435339eb5580b64b7ce055c21dbfe62b5173 /dumpcap.c
parent3b042c469d1e0d63582ca8c8d92a88173f60c642 (diff)
Initialize global_ld.pcaps before we setup signal handlers, which
uses this list to cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37425 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 918b1e38ac..1ca5a3654f 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -3817,6 +3817,9 @@ main(int argc, char *argv[])
log_flags,
console_log_handler, NULL /* user_data */);
+ /* Initialize the pcaps list */
+ global_ld.pcaps = NULL;
+
/* Initialize the thread system */
if (!g_thread_supported())
g_thread_init(NULL);