aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2013-02-21 01:02:26 +0800
committerCarlos Garcia Campos <carlosgc@gnome.org>2013-02-21 01:03:54 +0800
commit892b1d2649776dac118622a59cf827c7f1b51811 (patch)
tree9ca61e64a7f613864bd3d19675f3966b08710960 /embed/ephy-embed.c
parent10163f64235b535f49647a6ad0cfa5e3b0f179a9 (diff)
downloadgsoc2013-epiphany-892b1d2649776dac118622a59cf827c7f1b51811.tar
gsoc2013-epiphany-892b1d2649776dac118622a59cf827c7f1b51811.tar.gz
gsoc2013-epiphany-892b1d2649776dac118622a59cf827c7f1b51811.tar.bz2
gsoc2013-epiphany-892b1d2649776dac118622a59cf827c7f1b51811.tar.lz
gsoc2013-epiphany-892b1d2649776dac118622a59cf827c7f1b51811.tar.xz
gsoc2013-epiphany-892b1d2649776dac118622a59cf827c7f1b51811.tar.zst
gsoc2013-epiphany-892b1d2649776dac118622a59cf827c7f1b51811.zip
Fix a crash when deciding whether to switch to overview mode
It seems that URI might be NULL in some cases.
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r--embed/ephy-embed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index a465a142a..eef91061b 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -303,7 +303,7 @@ load_changed_cb (WebKitWebView *web_view,
const char *uri;
uri = webkit_web_view_get_uri (web_view);
- ephy_embed_set_overview_mode (embed, strcmp (uri, "ephy-about:overview") == 0);
+ ephy_embed_set_overview_mode (embed, uri && strcmp (uri, "ephy-about:overview") == 0);
break;
}
case WEBKIT_LOAD_COMMITTED: