aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/pcap-common.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2011-01-20 18:56:11 +0000
committerStephen Fisher <steve@stephen-fisher.com>2011-01-20 18:56:11 +0000
commitfc7b0c019bc36207b5f952ae2aa010b5eb5c2fc2 (patch)
tree40bfd91ae03d273aa0c527801d18c87ae20dfe38 /wiretap/pcap-common.c
parent9c04eb9b2c6f75f19daf47aa2d7957388260001e (diff)
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.c2
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{