summaryrefslogtreecommitdiffhomepage
path: root/math.c
diff options
context:
space:
mode:
authorJohn Beppu <beppu@lbox.org>2000-04-16 10:55:27 +0000
committerJohn Beppu <beppu@lbox.org>2000-04-16 10:55:27 +0000
commit53642b066c7340a73602d7fcfe6d2ebd80b3aa54 (patch)
treee91e01b4e310bc4282c4136d67ec39a5910ec78b /math.c
parent9057b6a91837f45b05a293b699e1f30191acc2c0 (diff)
+ fixed segfault when no parameters are given to math
Diffstat (limited to 'math.c')
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
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]);