From bf73dd529725dbfdf95c768792b77f87b190cd14 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 26 Apr 1999 00:39:47 +0000 Subject: [PATCH] (main): Handle the case in which seq is given no args. --- src/seq.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/seq.c b/src/seq.c index 27ebc9df0e..af2be47c6e 100644 --- a/src/seq.c +++ b/src/seq.c @@ -140,6 +140,12 @@ main (int argc, char **argv) } #endif + if (argc == 1) + { + error (0, 0, _("too few arguments")); + usage (1); + } + /* We have to handle negative numbers in the command line but this conflicts with the command line arguments. So explicitly check first whether the next argument looks like a negative number. */ -- 2.47.3