forked from osmocom/wireshark
Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I5bfbfc03795cd8ba3cd102d2249672ce3e48bc5f Reviewed-on: https://code.wireshark.org/review/4179 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
846a9332ed
commit
845e5e5c98
|
@ -237,7 +237,7 @@ dissect_rtacser_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
|
||||
p_add_proto_data(pinfo->pool, pinfo, proto_rtacser, 0, GUINT_TO_POINTER(global_rtacser_payload_proto));
|
||||
|
||||
if (tvb_reported_length_remaining(tvb, RTACSER_HEADER_LEN) > 0) {
|
||||
if (tvb_reported_length_remaining(tvb, offset) > 0) {
|
||||
payload_tvb = tvb_new_subset_remaining(tvb, RTACSER_HEADER_LEN);
|
||||
if (!dissector_try_uint(subdissector_table, global_rtacser_payload_proto, payload_tvb, pinfo, tree)){
|
||||
call_dissector(data_handle, payload_tvb, pinfo, tree);
|
||||
|
|
Loading…
Reference in New Issue