aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/stanag4607.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/stanag4607.c')
-rw-r--r--wiretap/stanag4607.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/wiretap/stanag4607.c b/wiretap/stanag4607.c
index 85693a9260..5b57b6ef20 100644
--- a/wiretap/stanag4607.c
+++ b/wiretap/stanag4607.c
@@ -147,13 +147,7 @@ static gboolean stanag4607_read_file(wtap *wth, FILE_T fh, wtap_rec *rec,
static gboolean stanag4607_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset)
{
- gint64 offset;
-
- *err = 0;
-
- offset = file_tell(wth->fh);
-
- *data_offset = offset;
+ *data_offset = file_tell(wth->fh);
return stanag4607_read_file(wth, wth->fh, &wth->rec, wth->rec_data, err, err_info);
}