diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1995-12-10 15:33:00 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1995-12-10 15:33:00 +0000 |
| commit | 54e66fcad5eae44880f740926ada45607ffaeef6 (patch) | |
| tree | e38f10278c8ba4580e4a7f3433dbd2701f65776f /usr.bin/nice | |
| parent | 279884182f140a16aec23396a767b91e214856ef (diff) | |
Notes
Diffstat (limited to 'usr.bin/nice')
| -rw-r--r-- | usr.bin/nice/nice.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/nice/nice.c b/usr.bin/nice/nice.c index 6b905d9879dfc..b34a9416a1afb 100644 --- a/usr.bin/nice/nice.c +++ b/usr.bin/nice/nice.c @@ -64,6 +64,8 @@ main(argc, argv) { int niceness = DEFNICE; + if (argc < 2) + errx(1, "usage: nice [-number] command [arguments]"); if (argv[1][0] == '-') if (argv[1][1] == '-' || isdigit(argv[1][1])) { niceness = atoi(argv[1] + 1); |
