1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-08-31 16:22:36 +02:00

hush: make run_command() return an error on parsing failure

run_command() returns success even if the command had a syntax error;
correct this behaviour.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Acked-by: Simon Glass <sjg@chromium.org)
This commit is contained in:
Rabin Vincent
2014-10-29 23:21:41 +01:00
committed by Tom Rini
parent 128059b926
commit 2302b3ab85
2 changed files with 3 additions and 1 deletions

View File

@@ -3162,7 +3162,7 @@ static int parse_stream_outer(struct in_str *inp, int flag)
o_string temp=NULL_O_STRING;
int rcode;
#ifdef __U_BOOT__
int code = 0;
int code = 1;
#endif
do {
ctx.type = flag;