From d555a8eb6d0ac505b3522de3546e60fcea5da226 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 21 Apr 2011 13:35:09 +0000 Subject: Fix Dead Store (Dead nested assignment) Warning found by Clang svn path=/trunk/; revision=36762 --- epan/dissectors/packet-xml.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'epan/dissectors/packet-xml.c') 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 */ } -- cgit v1.2.3