diff options
Diffstat (limited to 'cfile.c')
-rw-r--r-- | cfile.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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; } |