From: Jim Meyering Date: Sat, 10 May 2003 19:56:10 +0000 (+0000) Subject: Handle argc < optind. X-Git-Tag: v5.0.1~536 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74de8e29a83d228a527d45d551c6f84bb79daca7;p=thirdparty%2Fcoreutils.git Handle argc < optind. --- diff --git a/src/du.c b/src/du.c index ffbc4cfb09..2b8722d5b1 100644 --- a/src/du.c +++ b/src/du.c @@ -725,7 +725,7 @@ main (int argc, char **argv) if (opt_summarize_only) max_depth = 0; - files = (optind == argc ? cwd_only : argv + optind); + files = (optind < argc ? argv + optind : cwd_only); /* Initialize the hash structure for inode numbers. */ hash_init ();