aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2010-05-17 23:17:46 +0800
committerGustavo Noronha Silva <gns@gnome.org>2010-05-17 23:17:46 +0800
commit4f563f60f2c94f29605d0f1b0a35c94efc60fd72 (patch)
tree94e7f1c43debaffca225c79dd49bfa832c20398a /embed/ephy-web-view.c
parent32b02f5ecb82fd0d0536dc37f3db976690503869 (diff)
downloadgsoc2013-epiphany-4f563f60f2c94f29605d0f1b0a35c94efc60fd72.tar
gsoc2013-epiphany-4f563f60f2c94f29605d0f1b0a35c94efc60fd72.tar.gz
gsoc2013-epiphany-4f563f60f2c94f29605d0f1b0a35c94efc60fd72.tar.bz2
gsoc2013-epiphany-4f563f60f2c94f29605d0f1b0a35c94efc60fd72.tar.lz
gsoc2013-epiphany-4f563f60f2c94f29605d0f1b0a35c94efc60fd72.tar.xz
gsoc2013-epiphany-4f563f60f2c94f29605d0f1b0a35c94efc60fd72.tar.zst
gsoc2013-epiphany-4f563f60f2c94f29605d0f1b0a35c94efc60fd72.zip
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.
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c2
1 files changed, 1 insertions, 1 deletions
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;