From 63a2a95e3e7aae455b531d725689a577885fae1d Mon Sep 17 00:00:00 2001 From: beppu Date: Sun, 16 Apr 2000 10:55:27 +0000 Subject: + fixed segfault when no parameters are given to math git-svn-id: svn://busybox.net/trunk/busybox@460 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math.c b/math.c index 3b459f62e..96afafdef 100644 --- a/math.c +++ b/math.c @@ -130,7 +130,7 @@ static void stack_machine(const char *argument) int math_main(int argc, char **argv) { - if (argc < 1 || *argv[1]=='-') + if (argc <= 1 || *argv[1]=='-') usage(math_usage); while (argc >= 2) { stack_machine(argv[1]); -- cgit v1.2.3-55-g6feb