[epiphany/gnome-3-28] Fix crash on homedepot.com
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-28] Fix crash on homedepot.com
- Date: Wed, 12 Sep 2018 11:54:52 +0000 (UTC)
commit 6928e28f84fd80be019b76a85cd05142126ea9bc
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Sep 2 11:24:08 2018 -0500
Fix crash on homedepot.com
Tracking query removal fails to consider that the URI might not have a
hostname.
lib/ephy-uri-helpers.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/lib/ephy-uri-helpers.c b/lib/ephy-uri-helpers.c
index 6931f6780..43ebe610a 100644
--- a/lib/ephy-uri-helpers.c
+++ b/lib/ephy-uri-helpers.c
@@ -179,7 +179,8 @@ is_garbage (const char *name,
return FALSE;
for (i = 0; i < G_N_ELEMENTS (fields); i++) {
- if (fields[i].host != NULL &&
+ if (host != NULL &&
+ fields[i].host != NULL &&
!g_str_has_suffix (host, fields[i].host))
continue;
if (!g_strcmp0 (fields[i].field, name))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]