[epiphany] Fix crash when trying to load URIs with no path
- From: Gustavo Noronha Silva <gns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix crash when trying to load URIs with no path
- Date: Mon, 17 May 2010 15:19:11 +0000 (UTC)
commit 4f563f60f2c94f29605d0f1b0a35c94efc60fd72
Author: Gustavo Noronha Silva <gns gnome org>
Date: Mon May 17 12:17:46 2010 -0300
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index a0c63c7..c51b81b 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]