diff options
author | Timm Bäder <mail@baedert.org> | 2016-07-14 14:22:55 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2016-07-14 18:30:32 +0200 |
commit | b11a1664cd4dfcc62b07b4a68adc220fd1eb8305 (patch) | |
tree | 3b2bcf53dbc1fd6f9f8c8c25931af45826a50e4b /rest/rest-xml-parser.c | |
parent | eb4f757691ccac55daa2e87ff8843a4812004276 (diff) | |
download | librest-b11a1664cd4dfcc62b07b4a68adc220fd1eb8305.tar.gz |
Add more missing precondition checks
Diffstat (limited to 'rest/rest-xml-parser.c')
-rw-r--r-- | rest/rest-xml-parser.c | 1 |
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); |