diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2011-01-20 18:56:11 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2011-01-20 18:56:11 +0000 |
commit | fc7b0c019bc36207b5f952ae2aa010b5eb5c2fc2 (patch) | |
tree | 40bfd91ae03d273aa0c527801d18c87ae20dfe38 /wiretap/pcap-common.c | |
parent | 9c04eb9b2c6f75f19daf47aa2d7957388260001e (diff) | |
download | wireshark-fc7b0c019bc36207b5f952ae2aa010b5eb5c2fc2.tar.gz wireshark-fc7b0c019bc36207b5f952ae2aa010b5eb5c2fc2.tar.bz2 wireshark-fc7b0c019bc36207b5f952ae2aa010b5eb5c2fc2.zip |
Fix the dead initialization warnings found by clang's static analysis
("Value stored to 'xxx' during its initialization is never read")
svn path=/trunk/; revision=35598
Diffstat (limited to 'wiretap/pcap-common.c')
-rw-r--r-- | wiretap/pcap-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/pcap-common.c b/wiretap/pcap-common.c index 278107a1a0..7867618df6 100644 --- a/wiretap/pcap-common.c +++ b/wiretap/pcap-common.c @@ -1258,7 +1258,7 @@ pcap_read_erf_exheader(FILE_T fh, union wtap_pseudo_header *pseudo_header, guint8 erf_exhdr[8]; guint64 erf_exhdr_sw; int i = 0, max = sizeof(pseudo_header->erf.ehdr_list)/sizeof(struct erf_ehdr); - guint8 type = pseudo_header->erf.phdr.type; + guint8 type; *psize = 0; if (pseudo_header->erf.phdr.type & 0x80){ do{ |