From d3237c46cae5d87c91518d4111f75f3eff021d34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Sun, 9 Aug 2009 15:21:02 +0200 Subject: [PATCH] Skip adblock lines that are not handled --- extensions/adblock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/adblock.c b/extensions/adblock.c index 6d8bfe76..e17eb7c5 100644 --- a/extensions/adblock.c +++ b/extensions/adblock.c @@ -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) -- 2.39.5