[epiphany/gnome-3-30] Fix crash on homedepot.com



commit 43e71b41b7e43985933f758c0a5d4504c3c66630
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]