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++) {
get_fields(char *datesw, int msg, struct smsg *smsg)
{
enum state state;
- struct field f = {{0}};
+ struct field f = free_field;
int compnum;
char *msgnam;
struct tws *tw;
case LENERR2:
case FMTERR2:
- case ERR2:
+ case IOERR2:
admonish(NULL, "format error in message %d (header #%d)", msg, compnum);
if (datecomp) {
free(datecomp);