From 4f563f60f2c94f29605d0f1b0a35c94efc60fd72 Mon Sep 17 00:00:00 2001 From: Gustavo Noronha Silva Date: Mon, 17 May 2010 12:17:46 -0300 Subject: Fix crash when trying to load URIs with no path Trying to load file:, for instance, will crash Epiphany. This commit fixes this. See http://bugs.debian.org/554595. --- embed/ephy-web-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index a0c63c7f9..c51b81b35 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -2787,7 +2787,7 @@ ephy_web_view_can_go_up (EphyWebView *view) return FALSE; } - result = (uri->fragment || uri->query || strlen (uri->path) > 1); + result = uri->fragment || uri->query || (uri->path && (strlen (uri->path) > 1)); soup_uri_free (uri); return result; -- cgit