diff options
Diffstat (limited to 'coreutils/sort.c')
-rw-r--r-- | coreutils/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/sort.c b/coreutils/sort.c index c23bf9c60..c37810f1a 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -310,7 +310,7 @@ int sort_main(int argc, char **argv) | |||
310 | /* Open input files and read data */ | 310 | /* Open input files and read data */ |
311 | for (i = argv[optind] ? optind : optind-1; argv[i]; i++) { | 311 | for (i = argv[optind] ? optind : optind-1; argv[i]; i++) { |
312 | fp = stdin; | 312 | fp = stdin; |
313 | if (i >= optind && (argv[i][0] != '-' || argv[i][1])) | 313 | if (i >= optind && NOT_LONE_DASH(argv[i])) |
314 | fp = xfopen(argv[i], "r"); | 314 | fp = xfopen(argv[i], "r"); |
315 | for (;;) { | 315 | for (;;) { |
316 | line = GET_LINE(fp); | 316 | line = GET_LINE(fp); |