diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-02-05 01:11:27 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-02-05 01:11:27 +0800 |
commit | 2b7c5931d3720abb43c172c049c05c23f235d1a0 (patch) | |
tree | f30788a9752b6c11ba92002b0c8ee3a8b91ca521 /embed | |
parent | 3618cd422cdc8ea4228daf2a7f6b854a2bce4edb (diff) | |
download | gsoc2013-epiphany-2b7c5931d3720abb43c172c049c05c23f235d1a0.tar.gz 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 'embed')
-rw-r--r-- | embed/mozilla/StartHereProtocolHandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/mozilla/StartHereProtocolHandler.cpp b/embed/mozilla/StartHereProtocolHandler.cpp index 369b9123d..52235ab00 100644 --- a/embed/mozilla/StartHereProtocolHandler.cpp +++ b/embed/mozilla/StartHereProtocolHandler.cpp @@ -149,6 +149,7 @@ NS_IMETHODIMP GStartHereProtocolHandler::NewChannel(nsIURI *aURI, sh = ephy_start_here_new (); buf = ephy_start_here_get_page (sh, path.IsEmpty() ? "index" : path.get ()); + if (buf == NULL) return NS_ERROR_FAILURE; aBaseURI = ephy_start_here_get_base_uri (sh); rv = stream->Write (buf, strlen (buf), &bytesWritten); |