From 2b7c5931d3720abb43c172c049c05c23f235d1a0 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 4 Feb 2003 17:11:27 +0000 Subject: Dont crash when going to a not existent page. 2003-02-04 Marco Pesenti Gritti * embed/mozilla/StartHereProtocolHandler.cpp: * lib/ephy-start-here.c: (ephy_start_here_get_page): Dont crash when going to a not existent page. --- lib/ephy-start-here.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/ephy-start-here.c') 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); -- cgit v1.2.3