diff options
author | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-09-19 20:09:31 +0000 |
---|---|---|
committer | cmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-09-19 20:09:31 +0000 |
commit | bea5a348a63b1184d0945777ddb7ccf0a0a78b4b (patch) | |
tree | 350c01b93e0688e9de4ae6b0f7e3b9d614d949a2 | |
parent | efef6d20e582bba27e217d59674192b52a651b51 (diff) |
The change in r37371 fixed the clv_tree unused assignment and pointless use, but caused another unused assignment to 'ti'. Fixed. (Coverity CID 1233)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39052 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | epan/dissectors/packet-nlsp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/dissectors/packet-nlsp.c b/epan/dissectors/packet-nlsp.c index 8bf00ebffc..2a7cd973fd 100644 --- a/epan/dissectors/packet-nlsp.c +++ b/epan/dissectors/packet-nlsp.c @@ -224,14 +224,18 @@ nlsp_dissect_clvs(tvbuff_t *tvb, proto_tree *tree, int offset, length); } else { if (tree) { +#if 0 /* XXX: ?? */ ti = proto_tree_add_text(tree, tvb, offset - 2, length + 2, "Unknown code %u (%u)", code, length); -#if 0 /* XXX: ?? */ clv_tree = proto_item_add_subtree(ti, unknown_tree_id ); } else { clv_tree = NULL; +#else + proto_tree_add_text(tree, tvb, offset - 2, + length + 2, "Unknown code %u (%u)", + code, length); #endif } } |