Intialize phdr structure to avoid an invalid access to phdr->opt_comment

svn path=/trunk/; revision=51791
This commit is contained in:
Pascal Quantin 2013-09-05 20:35:03 +00:00
parent 2d1b7d1e32
commit 0cf459a6cc
1 changed files with 1 additions and 0 deletions

1
file.c
View File

@ -2216,6 +2216,7 @@ process_specified_packets(capture_file *cf, packet_range_t *range,
range_process_e process_this;
struct wtap_pkthdr phdr;
memset(&phdr, 0, sizeof(struct wtap_pkthdr));
buffer_init(&buf, 1500);
/* Update the progress bar when it gets to this value. */