aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-03-15 01:41:39 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-03-15 01:41:39 +0000
commitc39b3330725220342d47d75514cc7c07355da4f1 (patch)
tree6887c2c50782bc00dab330266af96928595d78ca /epan
parent329b915b66ea87f2cdff0cbec6ac2743d8597b21 (diff)
Fix bug 710 and avoid having it crash when more than one instance are open at once.
I think that whoever wrote the whole stats_tree thing should rewrite it ASAP, because it sucks! I did ?!?!?? ooops! svn path=/trunk/; revision=17627
Diffstat (limited to 'epan')
-rw-r--r--epan/stats_tree.c1
-rw-r--r--epan/stats_tree_priv.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/epan/stats_tree.c b/epan/stats_tree.c
index 89949814df..5eec67c807 100644
--- a/epan/stats_tree.c
+++ b/epan/stats_tree.c
@@ -341,6 +341,7 @@ static void setup_tree_presentation(gpointer k _U_, gpointer v, gpointer p) {
stats_tree_cfg* cfg = v;
struct _stats_tree_pres_cbs *d = p;
+ cfg->in_use = FALSE;
cfg->setup_node_pr = d->setup_node_pr;
cfg->new_tree_pr = d->new_tree_pr;
cfg->free_node_pr = d->free_node_pr;
diff --git a/epan/stats_tree_priv.h b/epan/stats_tree_priv.h
index 25730d9d21..8f1ffd6c81 100644
--- a/epan/stats_tree_priv.h
+++ b/epan/stats_tree_priv.h
@@ -111,7 +111,8 @@ struct _stats_tree_cfg {
guint8* name;
guint8* tapname;
-
+ gboolean in_use;
+
/* dissector defined callbacks */
stat_tree_packet_cb packet;
stat_tree_init_cb init;