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

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