diff options
author | Dan Winship <danw@src.gnome.org> | 2003-03-13 01:28:35 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-03-13 01:28:35 +0800 |
commit | 8d1a4eb49d1503d5fd1c016ca709bf42dd705959 (patch) | |
tree | 6f566dcefa860eae7400cd0aef972b2ab9d0941f | |
parent | ffec3e92a36ce871a71c5e739fbaf08fa957ab9c (diff) | |
download | gsoc2013-evolution-8d1a4eb49d1503d5fd1c016ca709bf42dd705959.tar.gz gsoc2013-evolution-8d1a4eb49d1503d5fd1c016ca709bf42dd705959.tar.zst gsoc2013-evolution-8d1a4eb49d1503d5fd1c016ca709bf42dd705959.zip |
Update for a libxml2 change that was making this code g_warn a lot
* e-xml-hash-utils.c (e_xml_to_hash): Update for a libxml2 change
that was making this code g_warn a lot
svn path=/trunk/; revision=20264
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/e-xml-hash-utils.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 6f6e90eb84..3c522366fd 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2003-03-12 Dan Winship <danw@ximian.com> + + * e-xml-hash-utils.c (e_xml_to_hash): Update for a libxml2 change + that was making this code g_warn a lot + 2003-03-06 Ettore Perazzoli <ettore@ximian.com> * e-request.c (e_request_string): Make the entry activate the diff --git a/e-util/e-xml-hash-utils.c b/e-util/e-xml-hash-utils.c index efb29f5fb6..e82d5ab237 100644 --- a/e-util/e-xml-hash-utils.c +++ b/e-util/e-xml-hash-utils.c @@ -38,7 +38,7 @@ e_xml_to_hash (xmlDoc *doc, EXmlHashType type) root = xmlDocGetRootElement (doc); for (node = root->xmlChildrenNode; node; node = node->next) { - if (node->name == NULL) + if (node->name == NULL || node->type != XML_ELEMENT_NODE) continue; if (type == E_XML_HASH_TYPE_OBJECT_UID && |