Commit 49b346f8 authored by TAKAHASHI Tamotsu's avatar TAKAHASHI Tamotsu

"nospam foo" causes a segv if you have not set any "spam", because of

a null pointer dereference.
parent 9253f288
......@@ -448,6 +448,8 @@ static int remove_from_spam_list (SPAM_LIST **list, const char *pat)
/* Being first is a special case. */
spam = *list;
if (!spam)
return 0;
if (spam->rx && !mutt_strcmp(spam->rx->pattern, pat))
*list = spam->next;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment