Blame SOURCES/autofs-5.0.7-fix-incorrect-value-reference-in-parse_line.patch

4d476f
autofs-5.0.7 - fix incorrect value reference in parse_line()
4d476f
4d476f
From: Ian Kent <raven@themaw.net>
4d476f
4d476f
This chack should clearly be on the contents of key not the pointer value.
4d476f
---
4d476f
 lib/defaults.c |    2 +-
4d476f
 1 file changed, 1 insertion(+), 1 deletion(-)
4d476f
4d476f
diff --git a/lib/defaults.c b/lib/defaults.c
4d476f
index 1e89509..7c65387 100644
4d476f
--- a/lib/defaults.c
4d476f
+++ b/lib/defaults.c
4d476f
@@ -167,7 +167,7 @@ static int parse_line(char *line, char **res, char **value)
4d476f
 	while (*key && *key == ' ')
4d476f
 		key++;
4d476f
 
4d476f
-	if (!key)
4d476f
+	if (!*key)
4d476f
 		return 0;
4d476f
 
4d476f
 	if (!(val = strchr(key, '=')))