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

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