From 9a6bd42cf4d71f5bb33717ed0b4e3707811ebadc Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Thu, 5 May 2011 00:48:54 +0000 Subject: Don't assign to unused variable: Coverity 1132 [UNUSED]. svn path=/trunk/; revision=36993 --- epan/dissectors/packet-xtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-xtp.c') diff --git a/epan/dissectors/packet-xtp.c b/epan/dissectors/packet-xtp.c index 92720a5a11..399c4d137d 100644 --- a/epan/dissectors/packet-xtp.c +++ b/epan/dissectors/packet-xtp.c @@ -609,7 +609,7 @@ dissect_xtp_ecntl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 offset) { guint32 len = tvb_length_remaining(tvb, offset); guint32 start = offset; - proto_item *top_ti, *ti; + proto_item *top_ti; proto_tree *xtp_subtree; struct xtp_ecntl ecntl[1]; guint64 *spans, *p; @@ -688,7 +688,7 @@ dissect_xtp_ecntl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, tvb, offset, 4, ecntl->echo); offset += 4; /* nspan(4) */ - ti = proto_tree_add_uint(xtp_subtree, hf_xtp_ecntl_nspan, + proto_tree_add_uint(xtp_subtree, hf_xtp_ecntl_nspan, tvb, offset, 4, ecntl->nspan); offset += 4; /* spans(16n) */ -- cgit v1.2.3