diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-01-22 04:50:21 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-01-22 04:50:21 +0800 |
commit | b4c2824437ab718c2b3e5fdcdbd5b9377053e7da (patch) | |
tree | 635eaeb49a273b44defe76e25001e4b96412cf44 /embed/ephy-history.c | |
parent | e2eae63203dae33b0b72ed369d879be2c9179a26 (diff) | |
download | gsoc2013-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
Diffstat (limited to 'embed/ephy-history.c')
-rw-r--r-- | embed/ephy-history.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |