From 9eb832220950a24f8c845545d5770c8905c8a58a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 10 May 2003 20:00:54 +0000 Subject: (main): Handle argc == 0. --- src/printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/printf.c') diff --git a/src/printf.c b/src/printf.c index 5be95cfb1..f0825e1e0 100644 --- a/src/printf.c +++ b/src/printf.c @@ -576,7 +576,7 @@ main (int argc, char **argv) ++argv; } - if (argc == 1) + if (argc <= 1) { fprintf (stderr, _("Usage: %s format [argument...]\n"), program_name); exit (EXIT_FAILURE); -- cgit v1.2.3-70-g09d2