aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-29 13:12:57 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-29 20:13:35 +0000
commit90d6219efaa517d4b6478fc055cded9c2915d622 (patch)
tree7eff43371a47dba31ed21d6d896af420515b42bf
parent91030a16aaac8813ab1c5eb7580ef005e70bf5f9 (diff)
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 <guy@alum.mit.edu>
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
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);