diff options
-rw-r--r-- | src/expand.c | 5 |
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 (); |