From 666366e069ab52308139048a70591284e97e2095 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 9 May 2017 11:41:32 +0200 Subject: vwr (wiretap): fix Assigned value is garbage or undefined Warning found by Clang Analyzer Change-Id: I45766c7e89a009176ae56fe9e9f5a8dd63b2995b Reviewed-on: https://code.wireshark.org/review/21567 Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- wiretap/vwr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wiretap') diff --git a/wiretap/vwr.c b/wiretap/vwr.c index a912dcc85e..941ab8e330 100644 --- a/wiretap/vwr.c +++ b/wiretap/vwr.c @@ -1412,7 +1412,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 = 0; /* mod (CCK-L/CCK-S/OFDM) */ + guint8 l1p_1,l1p_2, plcp_type, rate_mcs_index = 0, nss = 0; /* mod (CCK-L/CCK-S/OFDM) */ guint flow_seq; guint64 s_time = LL_ZERO, e_time = LL_ZERO; /* start/end */ /* times, nsec */ -- cgit v1.2.1