is never used" because of the return -1 at the end of this if block.
Removed item_toc = assignment and fixed indentation.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39469
f5534014-38df-0310-8fa8-
9805f1628bb7
/* ToC */
offset += (gint)toc_offset;
if (toc_entries < 1) {
- item_toc = proto_tree_add_text(tree,
- tvb,
- offset,
- (gint)querylen - (gint)toc_offset,
- "Complex types ToC (%u < 1 - bogus)",
- toc_entries);
+ proto_tree_add_text(tree,
+ tvb,
+ offset,
+ (gint)querylen - (gint)toc_offset,
+ "Complex types ToC (%u < 1 - bogus)",
+ toc_entries);
return -1;
}
toc_entries -= 1;