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