summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/expand.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/expand.c b/src/expand.c
index eff48e826..bd558fff9 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -397,10 +397,7 @@ main (int argc, char **argv)
else
tab_size = 0;
- if (optind == argc)
- file_list = stdin_argv;
- else
- file_list = &argv[optind];
+ file_list = (optind < argc ? &argv[optind] : stdin_argv);
expand ();