diff options
author | Gavin.Chang <gavin198511@gmail.com> | 2013-09-28 00:22:11 +0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-05-16 20:46:58 +0000 |
commit | c3a4676c7fe99ad094928007c6fa45896866ac42 (patch) | |
tree | f3545127cc72f6005e1c01fcd88d166531f6f143 /init | |
parent | bc741ac2126727d9de33042fa308307690efe13f (diff) | |
download | system_core-c3a4676c7fe99ad094928007c6fa45896866ac42.zip system_core-c3a4676c7fe99ad094928007c6fa45896866ac42.tar.gz system_core-c3a4676c7fe99ad094928007c6fa45896866ac42.tar.bz2 |
correct the setenv option judging condition
Change-Id: I10ed6275374f572da639f26611f607bf7607905c
Diffstat (limited to 'init')
-rw-r--r-- | init/init_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init_parser.c b/init/init_parser.c index 02e5bdc..7800082 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; } |