+ fixed segfault when no parameters are given to math

This commit is contained in:
John Beppu 2000-04-16 10:55:27 +00:00
parent 9057b6a918
commit 53642b066c

2
math.c
View File

@ -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]);