aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isis-clv.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-09-19 20:41:17 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-09-19 20:41:17 +0000
commit90599046291944d35ff7622bb16b2cc587963570 (patch)
tree985f130bfe4068af6d13f66fe5ec76253aac4384 /epan/dissectors/packet-isis-clv.c
parentfb19d6ab0f57c02b1dff93557612490ab71db3e2 (diff)
Don't assign the return value of proto_tree_add_text() if it's not going to be used. Fixes Coverity CID 1232.
svn path=/trunk/; revision=39056
Diffstat (limited to 'epan/dissectors/packet-isis-clv.c')
-rw-r--r--epan/dissectors/packet-isis-clv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-isis-clv.c b/epan/dissectors/packet-isis-clv.c
index b9f10c69b0..0872cf0884 100644
--- a/epan/dissectors/packet-isis-clv.c
+++ b/epan/dissectors/packet-isis-clv.c
@@ -565,7 +565,7 @@ isis_dissect_clvs(tvbuff_t *tvb, proto_tree *tree, int offset,
}
#else
if (tree) {
- ti = proto_tree_add_text(tree, tvb, offset - 2,
+ proto_tree_add_text(tree, tvb, offset - 2,
length + 2, "Unknown code %u (%u)",
code, length);
}