summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-10 20:00:54 +0000
committerJim Meyering <jim@meyering.net>2003-05-10 20:00:54 +0000
commit9eb832220950a24f8c845545d5770c8905c8a58a (patch)
tree1753f8750597abf18a71a021027b123eb577f947
parent888d3d38d964915bbe9354c2fdafb812f94bde11 (diff)
downloadcoreutils-9eb832220950a24f8c845545d5770c8905c8a58a.tar.xz
(main): Handle argc == 0.
-rw-r--r--src/printf.c2
1 files changed, 1 insertions, 1 deletions
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);