aboutsummaryrefslogtreecommitdiffstats
path: root/cfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'cfile.c')
-rw-r--r--cfile.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/cfile.c b/cfile.c
index 757c415740..1f10716f41 100644
--- a/cfile.c
+++ b/cfile.c
@@ -37,16 +37,6 @@ void
cap_file_init(capture_file *cf)
{
/* Initialize the capture file struct */
- cf->filename = NULL;
- cf->source = NULL;
- cf->is_tempfile = FALSE;
- cf->unsaved_changes = FALSE;
- cf->count = 0;
- cf->has_snap = FALSE;
+ memset(cf, sizeof(capture_file), 0);
cf->snap = WTAP_MAX_PACKET_SIZE;
- cf->wth = NULL;
- cf->rfcode = NULL;
- cf->dfilter = NULL;
- cf->redissecting = FALSE;
- cf->frames = NULL;
}