aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-08-25 02:20:58 +0800
committerChristian Persch <chpe@src.gnome.org>2003-08-25 02:20:58 +0800
commit46f5a689ef2b9b8bbb17686b15001e64ccb0c678 (patch)
tree8c134bf43e7e56ffa608a6e8dde12cff25a8862e /src/bookmarks
parentf81177dc840f6502fb7753006edabc29f119c1ef (diff)
downloadgsoc2013-epiphany-46f5a689ef2b9b8bbb17686b15001e64ccb0c678.tar
gsoc2013-epiphany-46f5a689ef2b9b8bbb17686b15001e64ccb0c678.tar.gz
gsoc2013-epiphany-46f5a689ef2b9b8bbb17686b15001e64ccb0c678.tar.bz2
gsoc2013-epiphany-46f5a689ef2b9b8bbb17686b15001e64ccb0c678.tar.lz
gsoc2013-epiphany-46f5a689ef2b9b8bbb17686b15001e64ccb0c678.tar.xz
gsoc2013-epiphany-46f5a689ef2b9b8bbb17686b15001e64ccb0c678.tar.zst
gsoc2013-epiphany-46f5a689ef2b9b8bbb17686b15001e64ccb0c678.zip
Fix the logic in the version-mismatch case.
2003-08-24 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_load): Fix the logic in the version-mismatch case.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmarks.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c
index 2ba82aa78..036113673 100644
--- a/src/bookmarks/ephy-bookmarks.c
+++ b/src/bookmarks/ephy-bookmarks.c
@@ -324,17 +324,19 @@ ephy_bookmarks_load (EphyBookmarks *eb)
g_return_val_if_fail (doc != NULL, FALSE);
root = xmlDocGetRootElement (doc);
-
+ child = root->children;
+
tmp = xmlGetProp (root, "version");
if (tmp != NULL && strcmp (tmp, EPHY_BOOKMARKS_XML_VERSION) != 0)
{
g_warning ("Old bookmarks database format detected");
+
child = NULL;
result = FALSE;
}
g_free (tmp);
- for (child = root->children; child != NULL; child = child->next)
+ for (; child != NULL; child = child->next)
{
EphyNode *node;