X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mh.c;h=ee799b314b09429f2598ee6f984ab417f037ff22;hp=90cf30aa7981be0eb29aca62f9ca59a55797f941;hb=23002a877577341cfd68687e58348e0ca01b1ac5;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/mh.c b/mh.c index 90cf30a..ee799b3 100644 --- a/mh.c +++ b/mh.c @@ -646,7 +646,7 @@ static int maildir_parse_entry (CONTEXT * ctx, struct maildir ***last, else h->path = str_dup (fname); - entry = mem_calloc (sizeof (struct maildir), 1); + entry = p_new(struct maildir, 1); entry->h = h; entry->header_parsed = (ctx->magic == M_MH); #ifdef USE_INODESORT @@ -1978,7 +1978,7 @@ static int maildir_is_magic (const char* path, struct stat* st) { /* routines common to maildir and mh */ static mx_t* reg_mx (void) { - mx_t* fmt = mem_calloc (1, sizeof (mx_t)); + mx_t* fmt = p_new(mx_t, 1); fmt->local = 1; fmt->mx_access = access; fmt->mx_sync_mailbox = mh_sync_mailbox;