aboutsummaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2006-11-24 18:25:23 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2006-11-24 18:25:23 +0000
commit241a6488a7d3e2bf5d81b61b7cd68a1cf3213ea4 (patch)
tree7896a15850a8f74e69b9426974b4759a0d50d584 /print.c
parent2014294eb3b9f6a46d772798558be9e5e22b6754 (diff)
Have separate proto_construct_match_selected_string() and
proto_can_match_selected() routines, to more clearly separate the two functions - but have them both call the same underlying routine, so they both make the same decisions as to whether a match-selected string can be constructed or not. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19976 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'print.c')
-rw-r--r--print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/print.c b/print.c
index ed5a3ba74d..7297c10daf 100644
--- a/print.c
+++ b/print.c
@@ -343,8 +343,9 @@ proto_tree_write_node_pdml(proto_node *node, gpointer data)
default:
/* XXX - this is a hack until we can just call
* fvalue_to_string_repr() for *all* FT_* types. */
- if (proto_construct_match_selected_string(fi,
- pdata->edt, &dfilter_string)) {
+ dfilter_string = proto_construct_match_selected_string(fi,
+ pdata->edt);
+ if (dfilter_string != NULL) {
chop_len = strlen(fi->hfinfo->abbrev) + 4; /* for " == " */
/* XXX - Remove double-quotes. Again, once we