Fix bug #3380. Initialize widget before callback handler for 'clicked'
[claws.git] / src / plugins / address_keeper / address_keeper.c
index be4f05338deb4d82400b51d0b93fa5aa8f9d0bce..aa6866abf1a66edb816f574e0e529ceecad7e653 100644 (file)
@@ -95,7 +95,7 @@ gchar *get_comment_from_addr(const gchar *addr)
  *
  * @return TRUE if given address matches any of the patterns, FALSE otherwise.
  */
-gboolean matches_blocked_address(const gchar *addr, MatcherList *blocked)
+gboolean matches_blocked_address(gchar *addr, MatcherList *blocked)
 {
        if (blocked != NULL) {
                MsgInfo info;
@@ -197,7 +197,7 @@ static gboolean addrk_before_send_hook(gpointer source, gpointer data)
 
        if (addkeeperprefs.block_matching_addrs != NULL
                        && addkeeperprefs.block_matching_addrs[0] != '\0') {
-               blocked = matcherlist_new_from_lines(addkeeperprefs.block_matching_addrs, FALSE);
+               blocked = matcherlist_new_from_lines(addkeeperprefs.block_matching_addrs, FALSE, FALSE);
                if (blocked == NULL)
                        g_warning("couldn't allocate matcher");
        }