aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/packet_win.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/packet_win.c b/gtk/packet_win.c
index 0c1646955f..2c5b7edfb8 100644
--- a/gtk/packet_win.c
+++ b/gtk/packet_win.c
@@ -131,14 +131,17 @@ void new_window_cb(GtkWidget *w _U_)
struct PacketWinData *DataPtr;
int i;
+#ifdef NEW_PACKET_LIST
+ int err;
+ gchar *err_info;
+#endif /* NEW_PACKET_LIST */
+
if (!cfile.current_frame) {
/* nothing has been captured so far */
return;
}
#ifdef NEW_PACKET_LIST
- int err;
- gchar *err_info;
/* With the new packetlists "lazy columns" it's neccesary to reread the frame */
if (!wtap_seek_read(cfile.wth, cfile.current_frame->file_off, &cfile.pseudo_header,