forked from osmocom/wireshark
Fix Coverity ID 1300: UNUSED_VALUE in dissect_spotlight: "returned_pointer
is never used" because of the return -1 at the end of this if block. Removed item_toc = assignment and fixed indentation. svn path=/trunk/; revision=39469
This commit is contained in:
parent
4b930ccb33
commit
20ae7e93d5
1 changed files with 6 additions and 6 deletions
|
@ -4336,12 +4336,12 @@ dissect_spotlight(tvbuff_t *tvb, proto_tree *tree, gint offset)
|
|||
/* 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;
|
||||
|
|
Loading…
Reference in a new issue