Eliminate inconsistency where a value that contains only whitespace
confuses the parser. Approved by: jkh
This commit is contained in:
parent
6f8d4c2ffc
commit
40863aba32
@ -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