From: Enrico Tröger Date: Sun, 9 Aug 2009 13:21:02 +0000 (+0200) Subject: Skip adblock lines that are not handled X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3237c46cae5d87c91518d4111f75f3eff021d34;p=midori Skip adblock lines that are not handled --- 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)