diff options
author | Balint Reczey <balint.reczey@ericsson.com> | 2010-04-02 20:40:20 +0000 |
---|---|---|
committer | Balint Reczey <balint.reczey@ericsson.com> | 2010-04-02 20:40:20 +0000 |
commit | 01fbe6644cf1059a38a13a9786cf4aed3085fb22 (patch) | |
tree | f8c29620312ade4f6e376a91c5a20d65a8a55f9d | |
parent | d32b4c0758a882eec5ebe21eef545ba19572e09d (diff) |
Fix crash when double clicking in packet list area before capturing any packet.
The crash does not happen when using the new packet list.
svn path=/trunk/; revision=32362
-rw-r--r-- | gtk/packet_win.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/packet_win.c b/gtk/packet_win.c index 6c9e6ca092..0c1646955f 100644 --- a/gtk/packet_win.c +++ b/gtk/packet_win.c @@ -131,6 +131,11 @@ void new_window_cb(GtkWidget *w _U_) struct PacketWinData *DataPtr; int i; + if (!cfile.current_frame) { + /* nothing has been captured so far */ + return; + } + #ifdef NEW_PACKET_LIST int err; gchar *err_info; |