From 3786f5c471255934c481016c7e5119cc40c81ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Sun, 15 Oct 2006 10:40:12 +0000 Subject: Fix unprotected call to ephy_node_remove_child. Bug #362063. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-10-15 Jean-François Rameau * src/bookmarks/ephy-bookmarks.c: (update_has_smart_address): Fix unprotected call to ephy_node_remove_child. Bug #362063. --- src/bookmarks/ephy-bookmarks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/bookmarks') diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c index 8ba6bd217..89341ae70 100644 --- a/src/bookmarks/ephy-bookmarks.c +++ b/src/bookmarks/ephy-bookmarks.c @@ -1272,7 +1272,10 @@ update_has_smart_address (EphyBookmarks *bookmarks, EphyNode *bmk, const char *a */ if (smart && with_options) { - ephy_node_remove_child (smart_bmks, bmk); + if (ephy_node_has_child (smart_bmks, bmk)) + { + ephy_node_remove_child (smart_bmks, bmk); + } ephy_node_add_child (smart_bmks, bmk); } else if (smart) -- cgit v1.2.3