X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=score.c;h=7d04fb4b8c5c4a30cdb8c74ce2e8c14bfb864067;hp=7959d4ccc4fda4397ac86acdb01cfcf4eb112e7c;hb=21595f98b7c8132f99abb9fee60ecdce31fc980f;hpb=9a1efcc01ddeca4106847f8eb28a704aca2dcf0b diff --git a/score.c b/score.c index 7959d4c..7d04fb4 100644 --- a/score.c +++ b/score.c @@ -13,10 +13,10 @@ #include #include +#include #include "mutt.h" #include "sort.h" -#include "buffer.h" #include #include @@ -68,7 +68,7 @@ int mutt_parse_score (BUFFER * buf, BUFFER * s, unsigned long data, return (-1); } pattern = buf->data; - memset (buf, 0, sizeof (BUFFER)); + p_clear(buf, 1); mutt_extract_token (buf, s, 0); if (MoreArgs (s)) { p_delete(&pattern);