[epiphany] Fix a crash when deciding whether to switch to overview mode
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix a crash when deciding whether to switch to overview mode
- Date: Wed, 20 Feb 2013 17:04:06 +0000 (UTC)
commit 892b1d2649776dac118622a59cf827c7f1b51811
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Wed Feb 20 18:02:26 2013 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index a465a14..eef9106 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]