aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMurray Stokely <murray@FreeBSD.org>2000-11-09 00:28:22 +0000
committerMurray Stokely <murray@FreeBSD.org>2000-11-09 00:28:22 +0000
commit40863aba32288f5674d8b18a4e19d27cc3cad9d6 (patch)
tree7463b92d12bd35eee9431fe522b23e3ee0fe9496 /lib
parent6f8d4c2ffc1e4f51c3c3c3ca732c883a8b7760e1 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/property.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libutil/property.c b/lib/libutil/property.c
index ba8eef964d7b..91189d9d8e09 100644
--- a/lib/libutil/property.c
+++ b/lib/libutil/property.c
@@ -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;