Use start_offset to set the item length in the usual pattern (assuming this was

intended). Fixes the unused variable warning on start_offset.

svn path=/trunk/; revision=51338
This commit is contained in:
Evan Huus 2013-08-13 13:28:14 +00:00
parent 0776754488
commit 69e9d50a23
1 changed files with 1 additions and 0 deletions

View File

@ -1669,6 +1669,7 @@ dissect_admin_record(proto_tree *primary_tree, tvbuff_t *tvb, packet_info *pinfo
break;
} /* End Switch */
proto_item_set_len(admin_record_item, offset - start_offset);
*success = TRUE;
return offset;
}