aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-21 00:50:40 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-21 00:50:40 +0800
commit227f730bc5b2376c885da7c5bdd4698adc5228d2 (patch)
tree057bec7d1b6d18a91b9e0697fe140cba7436e45c /embed
parentc7b845e657b1da27c44d37d93e51048abc2b36b4 (diff)
downloadgsoc2013-epiphany-227f730bc5b2376c885da7c5bdd4698adc5228d2.tar
gsoc2013-epiphany-227f730bc5b2376c885da7c5bdd4698adc5228d2.tar.gz
gsoc2013-epiphany-227f730bc5b2376c885da7c5bdd4698adc5228d2.tar.bz2
gsoc2013-epiphany-227f730bc5b2376c885da7c5bdd4698adc5228d2.tar.lz
gsoc2013-epiphany-227f730bc5b2376c885da7c5bdd4698adc5228d2.tar.xz
gsoc2013-epiphany-227f730bc5b2376c885da7c5bdd4698adc5228d2.tar.zst
gsoc2013-epiphany-227f730bc5b2376c885da7c5bdd4698adc5228d2.zip
If it's not possible to go up fails do not assert, just fail silently.
2003-11-20 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/mozilla-embed.cpp: If it's not possible to go up fails do not assert, just fail silently.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/mozilla-embed.cpp9
1 files changed, 5 insertions, 4 deletions
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 *