From 227f730bc5b2376c885da7c5bdd4698adc5228d2 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 20 Nov 2003 16:50:40 +0000 Subject: If it's not possible to go up fails do not assert, just fail silently. 2003-11-20 Marco Pesenti Gritti * embed/mozilla/mozilla-embed.cpp: If it's not possible to go up fails do not assert, just fail silently. --- embed/mozilla/mozilla-embed.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'embed/mozilla/mozilla-embed.cpp') diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index d94ffd686..497bc3753 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -468,11 +468,12 @@ impl_go_up (EphyEmbed *embed) parent_uri = mozilla_embed_get_uri_parent (uri); g_free (uri); - g_return_if_fail (parent_uri != NULL); - ephy_embed_load_url (embed, parent_uri); - - g_free (parent_uri); + if (parent_uri) + { + ephy_embed_load_url (embed, parent_uri); + g_free (parent_uri); + } } static char * -- cgit v1.2.3