diff options
author | Rob Bradford <rob@linux.intel.com> | 2010-08-19 16:07:54 +0100 |
---|---|---|
committer | Rob Bradford <rob@linux.intel.com> | 2010-08-19 16:07:54 +0100 |
commit | 0ebcff38beb28ec0f63c33bda6a1d39611c98baf (patch) | |
tree | 627b786f1dd8e15986845673de24499272791034 | |
parent | b0a8504ebeabac2943e3ef632f900f2ea6ad9556 (diff) |
xml-parser: Clear the stack in rest_xml_node_find
-rw-r--r-- | rest/rest-xml-parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rest/rest-xml-parser.c b/rest/rest-xml-parser.c index 98c9b48..ae3797b 100644 --- a/rest/rest-xml-parser.c +++ b/rest/rest-xml-parser.c @@ -232,6 +232,7 @@ rest_xml_node_find (RestXmlNode *start, { if ((tmp = g_hash_table_lookup (node->children, tag_interned)) != NULL) { + g_queue_clear (&stack); return tmp; } @@ -243,6 +244,7 @@ rest_xml_node_find (RestXmlNode *start, g_list_free (children); } + g_queue_clear (&stack); return NULL; } |