[librest] xml-node: Unbreak the creation of top-level nodes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest] xml-node: Unbreak the creation of top-level nodes
- Date: Mon, 16 Oct 2017 12:54:48 +0000 (UTC)
commit 3fbcc42c10f758e52418a4302a6962bccd8c8a26
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Oct 13 19:01:02 2017 +0200
xml-node: Unbreak the creation of top-level nodes
The rest_xml_node_add_child API explicitly documents NULL parents as
the way to create top-level nodes. This had broken the second half of
tests/xml.c.
Fallout from b11a1664cd4dfcc62b07b4a68adc220fd1eb8305
https://bugzilla.gnome.org/show_bug.cgi?id=788960
rest/rest-xml-node.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/rest/rest-xml-node.c b/rest/rest-xml-node.c
index 03be08a..5a444ce 100644
--- a/rest/rest-xml-node.c
+++ b/rest/rest-xml-node.c
@@ -334,7 +334,6 @@ rest_xml_node_add_child (RestXmlNode *parent, const char *tag)
RestXmlNode *node;
char *escaped;
- g_return_val_if_fail (parent, NULL);
g_return_val_if_fail (tag && *tag, NULL);
escaped = g_markup_escape_text (tag, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]