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

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