diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-11-20 09:07:34 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-11-20 09:07:34 +0000 |
commit | 8550cfcc6f3f2fcbd9b9151083aa4e1bfa91755b (patch) | |
tree | a22ff83ee5db1e222f81b6af426446d018936142 /gtk/main.c | |
parent | 3c11e4ff6d10d6adfaa3f9c56b5993e5f381e8c1 (diff) |
Allow the tvbuff pointer to various "proto_tree_add" routines to be null
if (and only if) the length of the item being added is 0 (so that it has
no data backing it).
This means the data stream name pointer for the item in question is
null; make sure we handle that.
Use that for some "uses the value from the matching request" fields in
the SMB Pipe protocol.
svn path=/trunk/; revision=4231
Diffstat (limited to 'gtk/main.c')
-rw-r--r-- | gtk/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/main.c b/gtk/main.c index 7f6cb4abcc..47ab88c3cc 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1,6 +1,6 @@ /* main.c * - * $Id: main.c,v 1.210 2001/11/09 07:44:50 guy Exp $ + * $Id: main.c,v 1.211 2001/11/20 09:07:33 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -475,7 +475,8 @@ tree_view_select_row_cb(GtkCTree *ctree, GList *node, gint column, gpointer user finfo = gtk_ctree_node_get_row_data( ctree, GTK_CTREE_NODE(node) ); if (!finfo) return; - set_notebook_page( byte_nb_ptr, find_notebook_page( byte_nb_ptr, finfo->ds_name)); + if (finfo->ds_name != NULL) + set_notebook_page( byte_nb_ptr, find_notebook_page( byte_nb_ptr, finfo->ds_name)); byte_view = gtk_object_get_data(GTK_OBJECT(byte_nb_ptr), E_BYTE_VIEW_TEXT_INFO_KEY); byte_data = gtk_object_get_data(GTK_OBJECT(byte_view), E_BYTE_VIEW_DATA_PTR_KEY); |