summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-29 11:47:46 +0000
committerDenis Vlasenko2008-07-29 11:47:46 +0000
commit45cb9f9581f514e1fc731d6d1146e0ee2333066a (patch)
treed30c06f2da25eaf3c2ce9f51a8c44c343afd0aaf /shell
parentfcf37c31838fbdd4f8cfe24c1c8ef957838a6de4 (diff)
downloadbusybox-45cb9f9581f514e1fc731d6d1146e0ee2333066a.zip
busybox-45cb9f9581f514e1fc731d6d1146e0ee2333066a.tar.gz
hush: fix inverted check (was making all break's to act as "break 99999")
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index eb70c9d..a2649d0 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;
}