aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-01-22 04:50:21 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-01-22 04:50:21 +0800
commitb4c2824437ab718c2b3e5fdcdbd5b9377053e7da (patch)
tree635eaeb49a273b44defe76e25001e4b96412cf44
parente2eae63203dae33b0b72ed369d879be2c9179a26 (diff)
downloadgsoc2013-epiphany-b4c2824437ab718c2b3e5fdcdbd5b9377053e7da.tar
gsoc2013-epiphany-b4c2824437ab718c2b3e5fdcdbd5b9377053e7da.tar.gz
gsoc2013-epiphany-b4c2824437ab718c2b3e5fdcdbd5b9377053e7da.tar.bz2
gsoc2013-epiphany-b4c2824437ab718c2b3e5fdcdbd5b9377053e7da.tar.lz
gsoc2013-epiphany-b4c2824437ab718c2b3e5fdcdbd5b9377053e7da.tar.xz
gsoc2013-epiphany-b4c2824437ab718c2b3e5fdcdbd5b9377053e7da.tar.zst
gsoc2013-epiphany-b4c2824437ab718c2b3e5fdcdbd5b9377053e7da.zip
Dont crash when url is NULL
2003-01-21 Marco Pesenti Gritti <marco@it.gnome.org> * embed/ephy-history.c: (ephy_history_host_set_title): Dont crash when url is NULL
-rw-r--r--ChangeLog6
-rw-r--r--embed/ephy-history.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c64fa294..3c61ffe34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2003-01-21 Marco Pesenti Gritti <marco@it.gnome.org>
+ * embed/ephy-history.c: (ephy_history_host_set_title):
+
+ Dont crash when url is NULL
+
+2003-01-21 Marco Pesenti Gritti <marco@it.gnome.org>
+
* data/ui/epiphany-ui.xml.in:
* lib/egg/egg-menu-merge.c: (do_updates):
* src/ephy-spinner-action.c: (create_tool_item):
diff --git a/embed/ephy-history.c b/embed/ephy-history.c
index f818ceb21..c1f7e2aa4 100644
--- a/embed/ephy-history.c
+++ b/embed/ephy-history.c
@@ -481,7 +481,8 @@ ephy_history_host_set_title (EphyHistory *eh,
host_url = ephy_node_get_property_string
(host, EPHY_NODE_PAGE_PROP_LOCATION);
- if (strcmp (real_url, host_url) == 0)
+ if (real_url && host_url &&
+ strcmp (real_url, host_url) == 0)
{
g_value_init (&value, G_TYPE_STRING);