diff options
author | Rob Bradford <rob@linux.intel.com> | 2010-04-14 17:17:02 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2010-04-15 10:27:20 +0100 |
commit | 60483a6706584b43ac3ac434d626be19d83bb05d (patch) | |
tree | 9281e7aabc6ea48601f7251811a91a6c470d6659 /rest/rest-xml-parser.c | |
parent | 067d537e4d8f0e55b7bbd12923e6ec3144bea632 (diff) | |
download | librest-60483a6706584b43ac3ac434d626be19d83bb05d.tar.gz |
proxy/proxy-call/xml-parser: Guard public function entry points
Fixes: http://bugzilla.meego.com/show_bug.cgi?id=273
Diffstat (limited to 'rest/rest-xml-parser.c')
-rw-r--r-- | rest/rest-xml-parser.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rest/rest-xml-parser.c b/rest/rest-xml-parser.c index db6a748..55b73fa 100644 --- a/rest/rest-xml-parser.c +++ b/rest/rest-xml-parser.c @@ -221,6 +221,9 @@ rest_xml_node_find (RestXmlNode *start, GList *children, *l; const char *tag_interned; + g_return_val_if_fail (start, NULL); + g_return_val_if_fail (start->ref_count > 0, NULL); + tag_interned = g_intern_string (tag); g_queue_push_head (&stack, start); @@ -285,6 +288,8 @@ rest_xml_parser_parse_from_data (RestXmlParser *parser, GQueue nodes = G_QUEUE_INIT; gint res = 0; + g_return_val_if_fail (REST_IS_XML_PARSER (parser), NULL); + _rest_setup_debugging (); reader = xmlReaderForMemory (data, |