projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace lookup tables for obscure hashes with more readable code
[mmh]
/
uip
/
sortm.c
diff --git
a/uip/sortm.c
b/uip/sortm.c
index
56fa7cb
..
ff69bc9
100644
(file)
--- a/
uip/sortm.c
+++ b/
uip/sortm.c
@@
-331,6
+331,9
@@
get_fields(char *datesw, int msg, struct smsg *smsg)
}
for (compnum = 1, state = FLD2;; compnum++) {
switch (state = m_getfld2(state, &f, in)) {
}
for (compnum = 1, state = FLD2;; compnum++) {
switch (state = m_getfld2(state, &f, in)) {
+ case LENERR2:
+ state = FLD2;
+ /* FALL */
case FLD2:
if (mh_strcasecmp(f.name, datesw)==0) {
datecomp = mh_xstrdup(f.value);
case FLD2:
if (mh_strcasecmp(f.name, datesw)==0) {
datecomp = mh_xstrdup(f.value);
@@
-350,8
+353,11
@@
get_fields(char *datesw, int msg, struct smsg *smsg)
case FILEEOF2:
break;
case FILEEOF2:
break;
- case LENERR2:
case FMTERR2:
case FMTERR2:
+ admonish(NULL, "format error in message %d (header #%d)", msg, compnum);
+ state = FLD2;
+ continue;
+
case IOERR2:
admonish(NULL, "format error in message %d (header #%d)", msg, compnum);
if (datecomp) {
case IOERR2:
admonish(NULL, "format error in message %d (header #%d)", msg, compnum);
if (datecomp) {