From 8d1a4eb49d1503d5fd1c016ca709bf42dd705959 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 12 Mar 2003 17:28:35 +0000 Subject: 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 --- e-util/e-xml-hash-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'e-util/e-xml-hash-utils.c') 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 && -- cgit v1.2.3