aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/packet_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/packet_win.c')
-rw-r--r--ui/gtk/packet_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/packet_win.c b/ui/gtk/packet_win.c
index 67fb5fddd2..c25d62b48a 100644
--- a/ui/gtk/packet_win.c
+++ b/ui/gtk/packet_win.c
@@ -961,7 +961,7 @@ void new_packet_window(GtkWidget *w _U_, gboolean reference, gboolean editable _
}
/* With the new packetlists "lazy columns" it's necessary to reread the frame */
- if (cf_read_frame(&cfile, fd) == -1) {
+ if (!cf_read_frame(&cfile, fd)) {
/* error reading the frame */
return;
}