aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-10-29 21:43:53 +0000
committerGuy Harris <guy@alum.mit.edu>2005-10-29 21:43:53 +0000
commit65207ac4cd2fda28042fdb4125e4bd72b1605139 (patch)
tree9e4ba2c983f042243f848f01a5c4f2467f9b67d4
parent3bd8fdbca10b3632a706abded1ec062a43f985f6 (diff)
Set "ti" in all code paths, to squelch a compiler warning.
svn path=/trunk/; revision=16358
-rw-r--r--epan/dissectors/packet-rmt-fec.c3
1 files changed, 3 insertions, 0 deletions
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)