summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-05-16 16:29:12 +0000
committerGerald Combs <gerald@wireshark.org>2012-05-16 16:29:12 +0000
commitbdb614e264d73aef418058cc22beac80b1c6026b (patch)
tree651d12b16a08aad155bea4b4cf4698edb90010d6 /tshark.c
parent46e202503a13b6e06110901cf28e0537d6054dcf (diff)
downloadwireshark-bdb614e264d73aef418058cc22beac80b1c6026b.tar.gz
Fix a bunch of uninitialized variables found by Coverity Scan. CIDs
702403, 702404, 702405, 702406, 702407, 702408, 702409, 702410, 702411, and 702412. svn path=/trunk/; revision=42658
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 04b723d88d..cb64d6de34 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2053,6 +2053,7 @@ capture(void)
the capture child to finish; it will report that it finished,
or will exit abnormally, so we'll stop reading from the sync
pipe, pick up the exit status, and quit. */
+ memset(&action, 0, sizeof(action));
action.sa_handler = capture_cleanup;
action.sa_flags = SA_RESTART;
sigemptyset(&action.sa_mask);