From d3fed959bc25c2685cd726e4768524baa33bbefd Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 24 Nov 2006 18:25:23 +0000 Subject: 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. svn path=/trunk/; revision=19976 --- tap-protocolinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tap-protocolinfo.c') diff --git a/tap-protocolinfo.c b/tap-protocolinfo.c index 0c9f8fbfc4..dfaea88099 100644 --- a/tap-protocolinfo.c +++ b/tap-protocolinfo.c @@ -76,7 +76,8 @@ protocolinfo_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const vo } for(i=0;ilen;i++){ - if(proto_construct_match_selected_string(gp->pdata[i], NULL, &str)){ + str=proto_construct_match_selected_string(gp->pdata[i], NULL); + if(str){ col_append_fstr(pinfo->cinfo, COL_INFO, " %s",str); } } -- cgit v1.2.1