summaryrefslogtreecommitdiff
path: root/src/du.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/du.c b/src/du.c
index ffbc4cfb0..2b8722d5b 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 ();