summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2010-08-19 16:07:54 +0100
committerRob Bradford <rob@linux.intel.com>2010-08-19 16:07:54 +0100
commit0ebcff38beb28ec0f63c33bda6a1d39611c98baf (patch)
tree627b786f1dd8e15986845673de24499272791034
parentb0a8504ebeabac2943e3ef632f900f2ea6ad9556 (diff)
xml-parser: Clear the stack in rest_xml_node_find
-rw-r--r--rest/rest-xml-parser.c2
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;
}