aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/bookmarks/ephy-bookmarks-import.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 764de7c47..3a005bc2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-02-26 Christian Persch <chpe@cvs.gnome.org>
+ * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_folder):
+
+ Make sure folder is != NULL. Fixes bug #163341.
+
+2005-02-26 Christian Persch <chpe@cvs.gnome.org>
+
* configure.ac:
Depend on gnome-desktop for gnome-desktop-item,
diff --git a/src/bookmarks/ephy-bookmarks-import.c b/src/bookmarks/ephy-bookmarks-import.c
index 23aa493ce..47cf97f34 100644
--- a/src/bookmarks/ephy-bookmarks-import.c
+++ b/src/bookmarks/ephy-bookmarks-import.c
@@ -313,9 +313,9 @@ xbel_parse_folder (EphyBookmarks *eb, xmlTextReaderPtr reader, char *parent_fold
ret = xbel_parse_bookmark (eb, reader, &node);
- keyword = ephy_bookmarks_find_keyword (eb, folder, FALSE);
+ keyword = ephy_bookmarks_find_keyword (eb, folder ? folder : "", FALSE);
- if (keyword == NULL)
+ if (keyword == NULL && folder != NULL && folder[0] != '\0')
{
keyword = ephy_bookmarks_add_keyword (eb, folder);
}
@@ -332,7 +332,7 @@ xbel_parse_folder (EphyBookmarks *eb, xmlTextReaderPtr reader, char *parent_fold
{
if (type == XML_READER_TYPE_ELEMENT)
{
- ret = xbel_parse_folder (eb, reader, folder);
+ ret = xbel_parse_folder (eb, reader, folder ? folder : "");
if (ret != 1) break;
}