summaryrefslogtreecommitdiff
path: root/wiretap
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-04-27 20:25:26 -0400
committerMichael Mann <mmann78@netscape.net>2017-05-05 23:09:02 +0000
commit82c667b1a6a701b1b4cd369c825f44a1433c7a23 (patch)
tree19198c8267a70f5c83160a5fe80982bb2d030015 /wiretap
parent3ef57b9ea2da5c122c66a62649d2b76b0592002c (diff)
downloadwireshark-82c667b1a6a701b1b4cd369c825f44a1433c7a23.tar.gz
vwr.c: Initialize some local variables
Prevents some compiler warnings Change-Id: I9d62d0f3e6b7794c5ed43f37d52f86d81344a33c Reviewed-on: https://code.wireshark.org/review/21531 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/vwr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c
index d3393da25c..ae4fc1ff51 100644
--- a/wiretap/vwr.c
+++ b/wiretap/vwr.c
@@ -1402,7 +1402,7 @@ static gboolean vwr_read_s2_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr,
int bytes_written = 0; /* bytes output to buf so far */
const guint8 *s_start_ptr,*s_trail_ptr, *plcp_ptr, *m_ptr; /* stats & MPDU ptr */
guint32 msdu_length, actual_octets; /* octets in frame */
- guint8 l1p_1,l1p_2, plcp_type, rate_mcs_index, nss; /* mod (CCK-L/CCK-S/OFDM) */
+ guint8 l1p_1,l1p_2, plcp_type, rate_mcs_index, nss = 0; /* mod (CCK-L/CCK-S/OFDM) */
guint flow_seq;
guint64 s_time = LL_ZERO, e_time = LL_ZERO; /* start/end */
/* times, nsec */
@@ -1834,7 +1834,7 @@ static gboolean vwr_read_s3_W_rec(vwr_t *vwr, struct wtap_pkthdr *phdr,
guint8 flow_seq =0,plcp_hdr_flag = 0,rf_id = 0; /* indicates plcp hdr info */
const guint8 *rf_ptr = NULL;
float rate;
- guint16 phyRate;
+ guint16 phyRate = 0;
/*
* The record data must be large enough to hold the statistics header,