(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:
parent
6e2a666882
commit
26d45adf8a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue