(xufldhdr): ellipsis wasn't cleared for machine-readable input. This

broke reading machine-readable input after reading a split table
failed before seeing the last part.  Luckily, callers never tried
that.
This commit is contained in:
Markus Armbruster 2007-08-05 18:23:09 +00:00
parent 6e2a666882
commit 26d45adf8a

View file

@ -687,11 +687,12 @@ xufldhdr(FILE *fp, struct castr ca[])
int *fidx;
int ch, i, j, n;
ellipsis = 0;
if (human) {
while ((ch = skipfs(fp)) == '\n')
lineno++;
ungetc(ch, fp);
ellipsis = 0;
nflds = xuflds(fp, xufldname);
if (nflds < 0)
return -1;