diff options
author | Evan Huus <eapache@gmail.com> | 2013-06-03 01:07:26 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-06-03 01:07:26 +0000 |
commit | 45ed7d6aa3eeae65f203b167be87f3edf34facab (patch) | |
tree | ac53e296de4197061509e4c754a71fc6e5d4e5c9 /wiretap | |
parent | c20b5d96a8899b1a72f5e57f4ffcd8f6c463041b (diff) |
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
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/peektagged.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wiretap/peektagged.c b/wiretap/peektagged.c index ed57e7a531..5dfff3ebeb 100644 --- a/wiretap/peektagged.c +++ b/wiretap/peektagged.c @@ -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. |