changeset 12076:a05834588ffb

config: Give an error if "block {" continues with non-whitespace.
author Timo Sirainen <tss@iki.fi>
date Fri, 03 Sep 2010 19:10:28 +0100
parents 124dd0840ed8
children e2a267b64619
files src/config/config-parser.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/config/config-parser.c	Fri Sep 03 15:18:55 2010 +0100
+++ b/src/config/config-parser.c	Fri Sep 03 19:10:28 2010 +0100
@@ -566,10 +566,10 @@
 			*value_r = "Expecting '='";
 			return CONFIG_LINE_TYPE_ERROR;
 		}
-		if (line[1] != '\0') {
-			*value_r = "Garbage after '{'";
-			return CONFIG_LINE_TYPE_ERROR;
-		}
+	}
+	if (line[1] != '\0') {
+		*value_r = "Garbage after '{'";
+		return CONFIG_LINE_TYPE_ERROR;
 	}
 	return CONFIG_LINE_TYPE_SECTION_BEGIN;
 }