aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.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 /dumpcap.c
parent46e202503a13b6e06110901cf28e0537d6054dcf (diff)
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 'dumpcap.c')
-rw-r--r--dumpcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 9b11df14e9..369731d757 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -4069,6 +4069,7 @@ main(int argc, char *argv[])
* our signal handler returns we don't want to restart
* a call that was waiting for packets to arrive.
*/
+ memset(&action, 0, sizeof(action));
action.sa_flags = 0;
sigemptyset(&action.sa_mask);
sigaction(SIGTERM, &action, NULL);