From 53642b066c7340a73602d7fcfe6d2ebd80b3aa54 Mon Sep 17 00:00:00 2001 From: John Beppu Date: Sun, 16 Apr 2000 10:55:27 +0000 Subject: [PATCH] + fixed segfault when no parameters are given to math --- 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]);