summaryrefslogtreecommitdiff
path: root/src/adblock.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-03-11 18:08:23 +0100
committerportix <portix@gmx.net>2012-03-11 18:08:23 +0100
commitce70744b3c0bc1f8198b24372fc7e33b4b3e1e42 (patch)
tree322ef581a7ae05d4a5d8fd1c824defdb6d03fc3c /src/adblock.c
parentce32247bbca20d0dd0e38a4642c4f4c1fb91fff9 (diff)
downloaddwb-ce70744b3c0bc1f8198b24372fc7e33b4b3e1e42.zip
Fixing possible SIGABRT in dwb_set_setting when the setting is set from commandline
Diffstat (limited to 'src/adblock.c')
-rw-r--r--src/adblock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adblock.c b/src/adblock.c
index c39100f6..3cb6d67f 100644
--- a/src/adblock.c
+++ b/src/adblock.c
@@ -144,6 +144,7 @@ adblock_element_hider_free(AdblockElementHider *hider) {
static inline gboolean
adblock_do_match(AdblockRule *rule, const char *uri) {
if (g_regex_match(rule->pattern, uri, 0, NULL)) {
+ printf("blocked %s %s\n", uri, g_regex_get_pattern(rule->pattern));
PRINT_DEBUG("blocked %s %s\n", uri, g_regex_get_pattern(rule->pattern));
return true;
}