From 65207ac4cd2fda28042fdb4125e4bd72b1605139 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 29 Oct 2005 21:43:53 +0000 Subject: Set "ti" in all code paths, to squelch a compiler warning. svn path=/trunk/; revision=16358 --- epan/dissectors/packet-rmt-fec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/epan/dissectors/packet-rmt-fec.c b/epan/dissectors/packet-rmt-fec.c index 573dbd1387..eb3f3776a5 100644 --- a/epan/dissectors/packet-rmt-fec.c +++ b/epan/dissectors/packet-rmt-fec.c @@ -181,7 +181,10 @@ void fec_dissector(struct _fec_ptr f, tvbuff_t *tvb, proto_tree *tree, guint *of ti = proto_tree_add_item(tree, f.hf->header, tvb, *offset, -1, FALSE); fec_tree = proto_item_add_subtree(ti, f.ett->main); } else + { + ti = NULL; fec_tree = NULL; + } /* FEC Encoding ID and FEC Instance ID processing */ if (f.fec->encoding_id_present) -- cgit v1.2.3