diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-02-17 19:43:16 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-02-17 19:43:16 +0000 |
commit | 1b0516a27ea33e0b91f824248a8797f02b6af047 (patch) | |
tree | 969f03666b78e41767f358fbf15cc07c01ab0bf4 /epan/dissectors/packet-3g-a11.c | |
parent | 51e5e75373ed9886e5b311cb6db6dd3a09b0df03 (diff) | |
download | wireshark-1b0516a27ea33e0b91f824248a8797f02b6af047.tar.gz |
Fix various Visual C++ analysis warnings.
svn path=/trunk/; revision=35985
Diffstat (limited to 'epan/dissectors/packet-3g-a11.c')
-rw-r--r-- | epan/dissectors/packet-3g-a11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-3g-a11.c b/epan/dissectors/packet-3g-a11.c index d3c169d1b1..fc4b216fee 100644 --- a/epan/dissectors/packet-3g-a11.c +++ b/epan/dissectors/packet-3g-a11.c @@ -1375,7 +1375,7 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /* Set up structures we will need to add the protocol subtree and manage it */ proto_item *ti; - proto_tree *a11_tree; + proto_tree *a11_tree = NULL; proto_item *tf; proto_tree *flags_tree; guint8 type; @@ -1673,7 +1673,7 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) break; } /* End switch */ - if (tree) { + if (tree && a11_tree) { if (tvb_reported_length_remaining(tvb, offset) > 0) dissect_a11_extensions(tvb, offset, a11_tree); } |