[epiphany/gnome-2-30] 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/gnome-2-30] Fix crash when trying to load URIs with no path
- Date: Mon, 17 May 2010 15:20:13 +0000 (UTC)
commit 6a4715b8a9df0bc16394c890cd734bc0601bfd03
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 2e08480..d8604cb 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2688,7 +2688,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]