Dataflow analysis is hard, let's go shopping!

Another case where the compiler didn't figure out that the variables
aren't used if they're not set.

Change-Id: I70bfb06c6d86d41a266a087ece971c40cd697ee9
Reviewed-on: https://code.wireshark.org/review/4994
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2014-10-30 02:03:28 -07:00
parent fdb3ea591b
commit c0a4a91ec2
1 changed files with 2 additions and 0 deletions

View File

@ -502,6 +502,8 @@ peektagged_read_packet(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
int skip_len = 0;
double t;
timestamp.upper = 0;
timestamp.lower = 0;
memset(&ieee_802_11, 0, sizeof ieee_802_11);
/* Extract the fields from the packet header */