X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsortm.c;h=5d15ed68d40099dec990e1cf9dc9b97994646aa4;hp=ae4038db6c2b3d68211fef3e21b92a7d29766ee1;hb=d6742b1bb19c7eca8488402484a6e4f55543d789;hpb=72795bfcbe9f7fee8927b1a4942c0230b0f857a8 diff --git a/uip/sortm.c b/uip/sortm.c index ae4038d..5d15ed6 100644 --- a/uip/sortm.c +++ b/uip/sortm.c @@ -297,8 +297,6 @@ read_hdrs(struct msgs *mp, char *datesw) smsgs = (struct smsg *) mh_xcalloc((size_t) (mp->hghsel - mp->lowsel + 2), sizeof(*smsgs)); - if (smsgs == NULL) - adios(EX_OSERR, NULL, "unable to allocate sort storage"); s = smsgs; for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) { @@ -336,7 +334,6 @@ get_fields(char *datesw, int msg, struct smsg *smsg) for (compnum = 1, state = FLD;;) { switch (state = m_getfld(state, nam, buf, sizeof(buf), in)) { case FLD: - case FLDEOF: case FLDPLUS: compnum++; if (!mh_strcasecmp(nam, datesw)) { @@ -366,7 +363,6 @@ get_fields(char *datesw, int msg, struct smsg *smsg) continue; case BODY: - case BODYEOF: case FILEEOF: break;