(xufld): Clarify.

This commit is contained in:
Markus Armbruster 2007-08-05 18:47:51 +00:00
parent b72068a49b
commit 5e65a9dd3c

View file

@ -215,7 +215,8 @@ xufld(FILE *fp, int i)
case EOF: case EOF:
return gripe("Unexpected EOF"); return gripe("Unexpected EOF");
case '\n': case '\n':
if (i != nflds) { CANT_HAPPEN(i > nflds);
if (i < nflds) {
if (fldca[i]->ca_type != NSC_STRINGY && fldca[i]->ca_len) if (fldca[i]->ca_type != NSC_STRINGY && fldca[i]->ca_len)
return gripe("Field %s(%d) missing", return gripe("Field %s(%d) missing",
fldca[i]->ca_name, fldidx[i]); fldca[i]->ca_name, fldidx[i]);