summaryrefslogtreecommitdiff
path: root/rest/rest-xml-parser.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-07-14 14:22:55 +0200
committerTimm Bäder <mail@baedert.org>2016-07-14 18:30:32 +0200
commitb11a1664cd4dfcc62b07b4a68adc220fd1eb8305 (patch)
tree3b2bcf53dbc1fd6f9f8c8c25931af45826a50e4b /rest/rest-xml-parser.c
parenteb4f757691ccac55daa2e87ff8843a4812004276 (diff)
downloadlibrest-b11a1664cd4dfcc62b07b4a68adc220fd1eb8305.tar.gz
Add more missing precondition checks
Diffstat (limited to 'rest/rest-xml-parser.c')
-rw-r--r--rest/rest-xml-parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rest/rest-xml-parser.c b/rest/rest-xml-parser.c
index 0e0f467..ffa6ff3 100644
--- a/rest/rest-xml-parser.c
+++ b/rest/rest-xml-parser.c
@@ -91,6 +91,7 @@ rest_xml_parser_parse_from_data (RestXmlParser *parser,
GQueue nodes = G_QUEUE_INIT;
g_return_val_if_fail (REST_IS_XML_PARSER (parser), NULL);
+ g_return_val_if_fail (data != NULL, NULL);
if (len == -1)
len = strlen (data);