From 892b1d2649776dac118622a59cf827c7f1b51811 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 20 Feb 2013 18:02:26 +0100 Subject: Fix a crash when deciding whether to switch to overview mode It seems that URI might be NULL in some cases. --- embed/ephy-embed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3