From 1950ffc2141ffdb7a0b8ec8291b0bf99ac12d9d6 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Tue, 23 Oct 2007 05:50:00 +0000 Subject: Apply the small performance enhancment patches for: - if offset is 0, tvb_length is the same as tvb_length_remaining, just faster. Replace - col_append_fstr() with faster col_append_str() - col_add_str() with col_set_str() when it's safe svn path=/trunk/; revision=23252 --- asn1/dop/packet-dop-template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asn1/dop/packet-dop-template.c') diff --git a/asn1/dop/packet-dop-template.c b/asn1/dop/packet-dop-template.c index 69e23ec261..d7c506dd26 100644 --- a/asn1/dop/packet-dop-template.c +++ b/asn1/dop/packet-dop-template.c @@ -227,7 +227,7 @@ dissect_dop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) if(dop_dissector) { if (check_col(pinfo->cinfo, COL_INFO)) - col_add_str(pinfo->cinfo, COL_INFO, dop_op_name); + col_set_str(pinfo->cinfo, COL_INFO, dop_op_name); while (tvb_reported_length_remaining(tvb, offset) > 0){ old_offset=offset; -- cgit v1.2.1