From 8550cfcc6f3f2fcbd9b9151083aa4e1bfa91755b Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 20 Nov 2001 09:07:34 +0000 Subject: 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 --- gtk/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk/main.c') 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 @@ -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); -- cgit v1.2.3