From 90d6219efaa517d4b6478fc055cded9c2915d622 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 29 Sep 2018 13:12:57 -0700 Subject: [PATCH] Define the wtap_rec next to the Buffer. They are used together; put them together. Change-Id: I13ec1f37a9a141d3717bfde4db6f1b7e501fb794 Reviewed-on: https://code.wireshark.org/review/29928 Reviewed-by: Guy Harris --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.c b/file.c index a61f709bce..299c0e3ae8 100644 --- a/file.c +++ b/file.c @@ -2058,6 +2058,7 @@ process_specified_records(capture_file *cf, packet_range_t *range, { guint32 framenum; frame_data *fdata; + wtap_rec rec; Buffer buf; psp_return_t ret = PSP_FINISHED; @@ -2068,7 +2069,6 @@ process_specified_records(capture_file *cf, packet_range_t *range, GTimeVal progbar_start_time; gchar progbar_status_str[100]; range_process_e process_this; - wtap_rec rec; wtap_rec_init(&rec); ws_buffer_init(&buf, 1500);