Eliminate inconsistency where a value that contains only whitespace

confuses the parser.

Approved by:	jkh
This commit is contained in:
Murray Stokely 2000-11-09 00:28:22 +00:00
parent 6f8d4c2ffc
commit 40863aba32

View File

@ -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;