changeset 252:5a18af547f58

Fix few cases of multiline entry handling.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 Dec 2004 20:15:04 +0000
parents e9ea4ce4c697
children fa463b3ca57b
files src/xs_stil.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xs_stil.c	Tue Dec 21 18:50:00 2004 +0000
+++ b/src/xs_stil.c	Tue Dec 21 20:15:04 2004 +0000
@@ -130,6 +130,7 @@
  switch (inLine[0]) {
  case '/':
  	/* Check if we are already parsing entry */
+ 	isMulti = FALSE;
  	if (tmpNode)
  		{
  		XSERR("New entry ('%s') before end of current ('%s')! Possibly malformed STIL-file!\n",
@@ -151,6 +152,7 @@
 
  case '(':
  	/* A new sub-entry */
+ 	isMulti = FALSE;
  	linePos++;
  	if (inLine[linePos] == '#')
  		{
@@ -177,6 +179,7 @@
  case '\n':
  case '\r':
  	/* End of entry/field */
+ 	isMulti = FALSE;
  	if (tmpNode)
  		{
  		/* Insert to database */