9
0
Fork 0

set last_return_code to rcode and not 1 or 0

This commit is contained in:
Sascha Hauer 2007-09-27 17:10:14 +02:00
parent 66af4f96e2
commit 27bf8f1dea
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ static int run_list_real(struct pipe *pi)
last_return_code = -rcode - 2;
return -2; /* exit */
}
last_return_code=(rcode == 0) ? 0 : 1;
last_return_code=rcode;
if ( rmode == RES_IF || rmode == RES_ELIF )
next_if_code=rcode; /* can be overwritten a number of times */
if (rmode == RES_WHILE)