Fix bug where using the return builtin inside an if-block could cause the else-block to get executed

darcs-hash:20060831205320-ac50b-64ecbaa3ed5e32c1a815ba384a6831a8fd5e1b47.gz
This commit is contained in:
axel 2006-09-01 06:53:20 +10:00
parent e2b7a078f4
commit 827c88e4a1

View file

@ -2743,11 +2743,11 @@ static int builtin_return( wchar_t **argv )
b = current_block;
while( ( b->type != FUNCTION_CALL))
{
b->type = FAKE;
b->skip=1;
b = b->outer;
}
b->skip=1;
// proc_set_last_status( status );
return status;
}