Skip adblock lines that are not handled

This commit is contained in:
Enrico Tröger 2009-08-09 15:21:02 +02:00 committed by Christian Dywan
parent 5193790004
commit d3237c46ca

View file

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