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
This commit is contained in:
Balint Reczey 2010-04-02 20:40:20 +00:00
parent d32b4c0758
commit 01fbe6644c
1 changed files with 5 additions and 0 deletions

View File

@ -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;