X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=inline;f=mh.c;h=1b9c7a63c8e10d4c85a0ac71ee5cc44ca4f49a2a;hb=9274cbe8e6410ddb95ddc667faa678a29da85420;hp=fc75d787634f0b93970979bb1deff8c2049af88d;hpb=c22c84b23ab59c81ccd397c992b1c4adbbddeb80;p=apps%2Fmadmutt.git diff --git a/mh.c b/mh.c index fc75d78..1b9c7a6 100644 --- a/mh.c +++ b/mh.c @@ -185,7 +185,7 @@ int mh_buffy (const char *path) int i, r = 0; struct mh_sequences mhs; - memset (&mhs, 0, sizeof (mhs)); + p_clear(&mhs, 1); mh_read_sequences (&mhs, path); for (i = 0; !r && i <= mhs.max; i++) @@ -290,7 +290,7 @@ void mh_update_sequences (CONTEXT * ctx) struct mh_sequences mhs; - memset (&mhs, 0, sizeof (mhs)); + p_clear(&mhs, 1); snprintf (seq_unseen, sizeof (seq_unseen), "%s:", NONULL (MhUnseen)); snprintf (seq_replied, sizeof (seq_replied), "%s:", NONULL (MhReplied)); @@ -928,7 +928,7 @@ static int _mh_read_dir (CONTEXT * ctx, const char *subdir) int count; - memset (&mhs, 0, sizeof (mhs)); + p_clear(&mhs, 1); maildir_update_mtime (ctx); @@ -1737,7 +1737,7 @@ static int mh_check_mailbox (CONTEXT * ctx, int *index_hint, int unused) ctx->mtime_cur = st_cur.st_mtime; ctx->mtime = st.st_mtime; - memset (&mhs, 0, sizeof (mhs)); + p_clear(&mhs, 1); md = NULL; last = &md;