From 45cb9f9581f514e1fc731d6d1146e0ee2333066a Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 29 Jul 2008 11:47:46 +0000 Subject: [PATCH] hush: fix inverted check (was making all break's to act as "break 99999") --- shell/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/hush.c b/shell/hush.c index eb70c9d9f..a2649d069 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -4571,7 +4571,7 @@ static int builtin_break(char **argv) 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; return EXIT_SUCCESS; } -- 2.25.1