aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]);