aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2019-02-21 09:52:10 +0100
committerAnders Broman <a.broman58@gmail.com>2019-02-21 11:45:51 +0000
commite391819e8df6927bd172f22dbffb29e3f169b038 (patch)
treeb04debf8f79eaacb88572b49d005d23a0e97efa4 /wiretap
parent2fffda7edd0c5c99f7de566a6383bb1183d78dfb (diff)
vcwr: fix Uninitialized argument value found by Clang (Analyzer)
Change-Id: Id0b1f4815e66fa5ef6b120099546a3d018164c99 Reviewed-on: https://code.wireshark.org/review/32134 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
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 afbe266e07..bf02b56376 100644
--- a/wiretap/vwr.c
+++ b/wiretap/vwr.c
@@ -854,7 +854,7 @@ wtap_open_return_val vwr_open(wtap *wth, int *err, gchar **err_info)
static gboolean vwr_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset)
{
vwr_t *vwr = (vwr_t *)wth->priv;
- int rec_size = 0, IS_TX, log_mode;
+ int rec_size = 0, IS_TX = 0, log_mode;
/* read the next frame record header in the capture file; if no more frames, return */
if (!vwr_read_rec_header(vwr, wth->fh, &rec_size, &IS_TX, &log_mode, err, err_info))
@@ -880,7 +880,7 @@ static gboolean vwr_seek_read(wtap *wth, gint64 seek_off,
wtap_rec *record, Buffer *buf, int *err, gchar **err_info)
{
vwr_t *vwr = (vwr_t *)wth->priv;
- int rec_size, IS_TX, log_mode;
+ int rec_size, IS_TX = 0, log_mode;
/* first seek to the indicated record header */
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1)