]> spindle.queued.net Git - midori/commitdiff
Skip adblock lines that are not handled
authorEnrico Tröger <enrico.troeger@uvena.de>
Sun, 9 Aug 2009 13:21:02 +0000 (15:21 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 9 Aug 2009 13:21:02 +0000 (15:21 +0200)
extensions/adblock.c

index 6d8bfe761430fa15132dca8108adf193b5338a83..e17eb7c559d9b1c8eb8ffd71fbf5270ecca184a1 100644 (file)
@@ -387,6 +387,9 @@ adblock_parse_file (gchar* path)
             gchar* parsed;
 
             parsed = adblock_parse_line (line);
+            if (!parsed)
+                continue;
+
             regex = g_regex_new (parsed, G_REGEX_OPTIMIZE,
                                  G_REGEX_MATCH_NOTEMPTY, &error);
             if (error)