aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-02-05 01:11:27 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-05 01:11:27 +0800
commit2b7c5931d3720abb43c172c049c05c23f235d1a0 (patch)
treef30788a9752b6c11ba92002b0c8ee3a8b91ca521 /lib
parent3618cd422cdc8ea4228daf2a7f6b854a2bce4edb (diff)
downloadgsoc2013-epiphany-2b7c5931d3720abb43c172c049c05c23f235d1a0.tar
gsoc2013-epiphany-2b7c5931d3720abb43c172c049c05c23f235d1a0.tar.gz
gsoc2013-epiphany-2b7c5931d3720abb43c172c049c05c23f235d1a0.tar.bz2
gsoc2013-epiphany-2b7c5931d3720abb43c172c049c05c23f235d1a0.tar.lz
gsoc2013-epiphany-2b7c5931d3720abb43c172c049c05c23f235d1a0.tar.xz
gsoc2013-epiphany-2b7c5931d3720abb43c172c049c05c23f235d1a0.tar.zst
gsoc2013-epiphany-2b7c5931d3720abb43c172c049c05c23f235d1a0.zip
Dont crash when going to a not existent page.
2003-02-04 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/StartHereProtocolHandler.cpp: * lib/ephy-start-here.c: (ephy_start_here_get_page): Dont crash when going to a not existent page.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-start-here.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ephy-start-here.c b/lib/ephy-start-here.c
index 030b5d5f6..40b23c452 100644
--- a/lib/ephy-start-here.c
+++ b/lib/ephy-start-here.c
@@ -274,6 +274,7 @@ ephy_start_here_get_page (EphyStartHere *sh, const char *id)
xml_filename = g_strconcat ("starthere/", id, ".xml", NULL);
xml_filepath = ephy_file (xml_filename);
+ if (!xml_filepath) return NULL;
g_free (xml_filename);
sh->priv->doc = xmlParseFile (xml_filepath);