(xuflds): Terminated the value list when a bad separator is found.
This commit is contained in:
parent
58bc018b53
commit
8900dfaa3d
1 changed files with 3 additions and 1 deletions
|
@ -221,8 +221,10 @@ xuflds(FILE *fp, struct value values[])
|
|||
ch = getc(fp);
|
||||
if (ch == '\n')
|
||||
ungetc(ch, fp);
|
||||
else if (ch != ' ' && ch != '\t')
|
||||
else if (ch != ' ' && ch != '\t') {
|
||||
values[i].v_type = VAL_NOTUSED;
|
||||
return gripe("Bad field separator after field %d", i + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue