hush: fix inverted check (was making all break's to act as "break 99999")
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 29 Jul 2008 11:47:46 +0000 (11:47 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 29 Jul 2008 11:47:46 +0000 (11:47 -0000)
shell/hush.c

index eb70c9d9f4065cb51f6a105e4888e22b7a987853..a2649d069d0d58ca8146df5b70e4ec1963811e43 100644 (file)
@@ -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;
 }