diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-09-02 23:13:12 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-09-02 23:13:12 +0000 |
commit | 9c43ccd371d858fbcfa699a5049406d3cdc4397e (patch) | |
tree | a364f016f52454f24862f6efe40e4343ab5117e4 /epan/dissectors/packet-mp2t.c | |
parent | 4e02b8dc0e7cc1fb9600bb639756fba55366c428 (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=51668
Diffstat (limited to 'epan/dissectors/packet-mp2t.c')
-rw-r--r-- | epan/dissectors/packet-mp2t.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mp2t.c b/epan/dissectors/packet-mp2t.c index ed1b7fa009..9d470ddc75 100644 --- a/epan/dissectors/packet-mp2t.c +++ b/epan/dissectors/packet-mp2t.c @@ -734,7 +734,6 @@ mp2t_process_fragmented_payload(tvbuff_t *tvb, gint offset, guint remaining_len, proto_tree_add_item(stuff_tree, hf_mp2t_stuff_bytes, tvb, offset, stuff_len, ENC_NA); offset += stuff_len; if (stuff_len >= remaining_len) { - remaining_len = 0; goto save_state; } remaining_len -= stuff_len; @@ -747,7 +746,7 @@ mp2t_process_fragmented_payload(tvbuff_t *tvb, gint offset, guint remaining_len, if (frag_tot_len == (guint)-1 || !frag_tot_len) { mp2t_fragment_handle(tvb, offset, pinfo, tree, frag_id, 0, remaining_len, FALSE, pid_analysis->pload_type); fragmentation = TRUE; - offset += remaining_len; + /*offset += remaining_len;*/ frag_cur_pos += remaining_len; goto save_state; } |