From c3a4676c7fe99ad094928007c6fa45896866ac42 Mon Sep 17 00:00:00 2001 From: "Gavin.Chang" Date: Sat, 28 Sep 2013 00:22:11 +0800 Subject: [PATCH] correct the setenv option judging condition Change-Id: I10ed6275374f572da639f26611f607bf7607905c --- init/init_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/init_parser.c b/init/init_parser.c index 02e5bdcca..78000825d 100644 --- a/init/init_parser.c +++ b/init/init_parser.c @@ -760,7 +760,7 @@ static void parse_line_service(struct parse_state *state, int nargs, char **args break; case K_setenv: { /* name value */ struct svcenvinfo *ei; - if (nargs < 2) { + if (nargs < 3) { parse_error(state, "setenv option requires name and value arguments\n"); break; }