diff options
Diffstat (limited to 'lib/ephy-node-db.c')
-rw-r--r-- | lib/ephy-node-db.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/ephy-node-db.c b/lib/ephy-node-db.c index 874b2a30a..21cba5de0 100644 --- a/lib/ephy-node-db.c +++ b/lib/ephy-node-db.c @@ -348,13 +348,15 @@ ephy_node_db_load_from_file (EphyNodeDb *db, && type == XML_READER_TYPE_ELEMENT) { xmlNodePtr subtree; - EphyNode *node; /* grow the subtree and load the node from it */ subtree = xmlTextReaderExpand (reader); - node = ephy_node_new_from_xml (db, subtree); - + if (subtree != NULL) + { + ephy_node_new_from_xml (db, subtree); + } + skip = TRUE; } else if (xmlStrEqual (name, xml_root) |