From b4c2824437ab718c2b3e5fdcdbd5b9377053e7da Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 21 Jan 2003 20:50:21 +0000 Subject: Dont crash when url is NULL 2003-01-21 Marco Pesenti Gritti * embed/ephy-history.c: (ephy_history_host_set_title): Dont crash when url is NULL --- ChangeLog | 6 ++++++ embed/ephy-history.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8c64fa294..3c61ffe34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-01-21 Marco Pesenti Gritti + + * embed/ephy-history.c: (ephy_history_host_set_title): + + Dont crash when url is NULL + 2003-01-21 Marco Pesenti Gritti * data/ui/epiphany-ui.xml.in: 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); -- cgit v1.2.3