aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-03-16 16:36:23 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-03-16 16:36:23 +0000
commit54192cbe7d9215ca932263f02c7ecdd344f151be (patch)
treea9f6ff06e8c37c4a7cabc80ebbdbdf858ae100ab
parent68852899b0fd0b85c74a4c4e8e9745c6ba5afb7e (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41618
-rw-r--r--epan/dissectors/packet-mpeg-sect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mpeg-sect.c b/epan/dissectors/packet-mpeg-sect.c
index 518d9f4b32..48030529ab 100644
--- a/epan/dissectors/packet-mpeg-sect.c
+++ b/epan/dissectors/packet-mpeg-sect.c
@@ -246,7 +246,7 @@ dissect_mpeg_sect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
gint offset = 0;
guint8 table_id = 0;
guint section_length = 0;
- gboolean syntax_indicator;
+ gboolean syntax_indicator = 0;
proto_item *ti = NULL;
proto_tree *mpeg_sect_tree = NULL;
@@ -268,7 +268,7 @@ dissect_mpeg_sect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_item_append_text(ti, " Table_ID=0x%02x", table_id);
- offset += packet_mpeg_sect_header(tvb, offset, mpeg_sect_tree,
+ packet_mpeg_sect_header(tvb, offset, mpeg_sect_tree,
&section_length, &syntax_indicator);
}