summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/conf-parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index c3af230870..b4ebc0f44b 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -249,6 +249,9 @@ static int parse_line(
if (!e)
return log_syntax(unit, LOG_WARNING, filename, line, 0,
"Missing '=', ignoring line.");
+ if (e == l)
+ return log_syntax(unit, LOG_WARNING, filename, line, 0,
+ "Missing key name before '=', ignoring line.");
*e = 0;
e++;