aboutsummaryrefslogtreecommitdiffstats
path: root/apps/rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/rand.c')
-rw-r--r--apps/rand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/rand.c b/apps/rand.c
index cbf495d5bc..f99c91dbbf 100644
--- a/apps/rand.c
+++ b/apps/rand.c
@@ -95,7 +95,7 @@ int rand_main(int argc, char **argv)
if (argc == 1) {
if (!opt_int(argv[0], &num) || num <= 0)
goto opthelp;
- } else if (argc != 0) {
+ } else if (!opt_check_rest_arg(NULL)) {
goto opthelp;
}