hush: fix inverted check (was making all break's to act as "break 99999")

This commit is contained in:
Denis Vlasenko 2008-07-29 11:47:46 +00:00
parent fcf37c3183
commit 45cb9f9581

View File

@ -4571,7 +4571,7 @@ static int builtin_break(char **argv)
depth_break_continue = UINT_MAX; depth_break_continue = UINT_MAX;
} }
} }
if (depth_of_loop > depth_break_continue) if (depth_of_loop < depth_break_continue)
depth_break_continue = depth_of_loop; depth_break_continue = depth_of_loop;
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }