diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2012-09-03 21:25:07 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2012-09-03 21:25:07 +0000 |
commit | a31e9fc2ccc1178700e98610d087ca6cf07a2999 (patch) | |
tree | 502e14feba460333614b287fd5ba2e0e0c3f32b3 /epan/dissectors/packet-mpeg-pat.c | |
parent | 677d843489766002025820172f02b669fd305040 (diff) |
unify the handling for all DVB/MPEG sections
don't initialize pointer where it's not required
remove unnecessary 'if (tree)' checks
svn path=/trunk/; revision=44762
Diffstat (limited to 'epan/dissectors/packet-mpeg-pat.c')
-rw-r--r-- | epan/dissectors/packet-mpeg-pat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-mpeg-pat.c b/epan/dissectors/packet-mpeg-pat.c index b538bebba8..2a735488f6 100644 --- a/epan/dissectors/packet-mpeg-pat.c +++ b/epan/dissectors/packet-mpeg-pat.c @@ -71,10 +71,10 @@ dissect_mpeg_pat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint offset = 0, length = 0; guint16 prog_num = 0, prog_pid; - proto_item *ti = NULL; - proto_tree *mpeg_pat_tree = NULL; - proto_item *pi = NULL; - proto_tree *mpeg_pat_prog_tree = NULL; + proto_item *ti; + proto_tree *mpeg_pat_tree; + proto_item *pi; + proto_tree *mpeg_pat_prog_tree; /* The TVB should start right after the section_length in the Section packet */ |