mirror of
https://github.com/sheumann/hush.git
synced 2025-01-04 22:34:37 +00:00
+ fixed segfault when no parameters are given to math
This commit is contained in:
parent
9057b6a918
commit
53642b066c
2
math.c
2
math.c
@ -130,7 +130,7 @@ static void stack_machine(const char *argument)
|
|||||||
|
|
||||||
int math_main(int argc, char **argv)
|
int math_main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc < 1 || *argv[1]=='-')
|
if (argc <= 1 || *argv[1]=='-')
|
||||||
usage(math_usage);
|
usage(math_usage);
|
||||||
while (argc >= 2) {
|
while (argc >= 2) {
|
||||||
stack_machine(argv[1]);
|
stack_machine(argv[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user