aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scte35.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2018-06-02 18:07:12 +0200
committerAnders Broman <a.broman58@gmail.com>2018-06-02 19:19:00 +0000
commit4812085c28c24a11e9996f2f6db287c2e0e7265e (patch)
tree75f42b37d7b2a40c7ae0be05bb037833d01a387e /epan/dissectors/packet-scte35.c
parent871ed51bb18f00e99fcc04ccd805e898d9a5a412 (diff)
scte35: fix uninitialized variable.
../epan/dissectors/packet-scte35.c: In function ‘dissect_scte35_splice_insert’: ../epan/dissectors/packet-scte35.c:487:12: error: ‘tsf’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if (tsf) { ^ ../epan/dissectors/packet-scte35.c:451:27: note: ‘tsf’ was declared here guint8 component_tag, tsf; ^ cc1: all warnings being treated as errors Change-Id: I9445c76bd1d3447ce5d9ce3df5970840a1605175 Reviewed-on: https://code.wireshark.org/review/27957 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-scte35.c')
-rw-r--r--epan/dissectors/packet-scte35.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-scte35.c b/epan/dissectors/packet-scte35.c
index 05438a814c..c399428b9b 100644
--- a/epan/dissectors/packet-scte35.c
+++ b/epan/dissectors/packet-scte35.c
@@ -448,7 +448,7 @@ static int
dissect_component(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint8 sif, int idx)
{
gint offset = 0;
- guint8 component_tag, tsf;
+ guint8 component_tag, tsf = 0;
proto_tree *component_tree;
gint tvb_len, min_length = sif ? 1 : 2;