Initialize some variables that GCC 4.7 complains about. I'm not 100% sure

that the complaints are valid, or that simply zeroing them is the right fix
if they are, but at least it builds now. Should we be erroring if we don't
see a sliceLength header?

svn path=/trunk/; revision=49705
This commit is contained in:
Evan Huus 2013-06-03 01:07:26 +00:00
parent c20b5d96a8
commit 45ed7d6aa3
1 changed files with 3 additions and 0 deletions

View File

@ -402,6 +402,9 @@ peektagged_process_header(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
int skip_len = 0;
double t;
hdr_info.length = 0;
hdr_info.sliceLength = 0;
/* Extract the fields from the packet header */
do {
/* Get the tag and value.