aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2019-01-19 00:13:06 +0100
committerAnders Broman <a.broman58@gmail.com>2019-01-19 07:04:55 +0000
commit7e7caaddf802b41c26eef0b61c87c231aec519be (patch)
treed28854db10845fdc0a55d6947c70b96f3c00206e /wiretap
parentaade3fd5870b7ebd5b5663f3eca728115c15ae76 (diff)
vwr: fix -Werror=maybe-uninitialized with GCC 8.2.1+20181127-1
Change-Id: I58d61d29719facb5d639bdbd7e3d790096f69486 Reviewed-on: https://code.wireshark.org/review/31599 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Guy Harris <guy@alum.mit.edu> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/vwr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c
index 67a886edec..afbe266e07 100644
--- a/wiretap/vwr.c
+++ b/wiretap/vwr.c
@@ -1828,7 +1828,7 @@ static gboolean vwr_read_s3_W_rec(vwr_t *vwr, wtap_rec *record,
int sig_off, pay_off; /* MAC+SNAP header len, signature offset */
guint64 sig_ts = 0, tsid; /* 32 LSBs of timestamp in signature */
guint64 delta_b; /* Used for calculating latency */
- guint8 L1InfoC,port_type,ver_fpga = 0;
+ guint8 L1InfoC = 0, port_type, ver_fpga = 0;
guint8 flow_seq =0,plcp_hdr_flag = 0,rf_id = 0; /* indicates plcp hdr info */
const guint8 *rf_ptr = NULL;
float rate;