Eliminate inconsistency where a value that contains only whitespace
confuses the parser. Approved by: jkh
This commit is contained in:
parent
6f8d4c2ffc
commit
40863aba32
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68509
@ -133,7 +133,12 @@ properties_read(int fd)
|
||||
break;
|
||||
|
||||
case VALUE:
|
||||
if (v == 0 && isspace(ch))
|
||||
if (v == 0 && ch == '\n') {
|
||||
hold_v[v] = '\0';
|
||||
v = n = 0;
|
||||
state = COMMIT;
|
||||
}
|
||||
else if (v == 0 && isspace(ch))
|
||||
continue;
|
||||
else if (ch == '{') {
|
||||
state = MVALUE;
|
||||
|
Loading…
Reference in New Issue
Block a user