diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-04-21 13:35:09 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-04-21 13:35:09 +0000 |
commit | d555a8eb6d0ac505b3522de3546e60fcea5da226 (patch) | |
tree | c4dabce6b172df0d7ae636a3e6206cdbc7c6cadc /epan/dissectors/packet-xml.c | |
parent | 7e979f95aaf477e349373423750d46b834c7b243 (diff) |
Fix Dead Store (Dead nested assignment) Warning found by Clang
svn path=/trunk/; revision=36762
Diffstat (limited to 'epan/dissectors/packet-xml.c')
-rw-r--r-- | epan/dissectors/packet-xml.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-xml.c b/epan/dissectors/packet-xml.c index 4d1ddd1baa..e48b4e1eba 100644 --- a/epan/dissectors/packet-xml.c +++ b/epan/dissectors/packet-xml.c @@ -179,7 +179,6 @@ static void dissect_xml(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { tvbparse_t* tt; - tvbparse_elem_t* tok = NULL; static GPtrArray* stack = NULL; xml_frame_t* current_frame; char* colinfo_str; @@ -220,7 +219,7 @@ dissect_xml(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) current_frame->tree = proto_item_add_subtree(current_frame->item,current_frame->ns->ett); current_frame->last_item = current_frame->item; - while(( tok = tvbparse_get(tt, want) )) ; + while(tvbparse_get(tt, want)) ; pinfo->private_data = current_frame; /* pass XML structure to the dissector calling XML */ } |