file: fix Potentially uninitialized variable 'err/err_info' used found by PVS Studio (V614)

Change-Id: I9abc192c492c98beb4cdc32e623115849ad6d512
Reviewed-on: https://code.wireshark.org/review/12332
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2015-12-01 15:02:06 +01:00 committed by Anders Broman
parent 9779ae3817
commit f00af593b9
1 changed files with 2 additions and 2 deletions

4
file.c
View File

@ -522,8 +522,8 @@ calc_progbar_val(capture_file *cf, gint64 size, gint64 file_pos, gchar *status_s
cf_read_status_t
cf_read(capture_file *cf, gboolean reloading)
{
int err;
gchar *err_info;
int err = 0;
gchar *err_info = NULL;
gchar *name_ptr;
progdlg_t *progbar = NULL;
GTimeVal start_time;