diff options
author | John Beppu | 2000-04-16 10:55:27 +0000 |
---|---|---|
committer | John Beppu | 2000-04-16 10:55:27 +0000 |
commit | 53642b066c7340a73602d7fcfe6d2ebd80b3aa54 (patch) | |
tree | e91e01b4e310bc4282c4136d67ec39a5910ec78b /math.c | |
parent | 9057b6a91837f45b05a293b699e1f30191acc2c0 (diff) | |
download | busybox-53642b066c7340a73602d7fcfe6d2ebd80b3aa54.zip busybox-53642b066c7340a73602d7fcfe6d2ebd80b3aa54.tar.gz |
+ fixed segfault when no parameters are given to math
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]); |