diff options
Diffstat (limited to 'src/sort.c')
-rw-r--r-- | src/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c index ede496026..0357c8e33 100644 --- a/src/sort.c +++ b/src/sort.c @@ -2265,7 +2265,7 @@ main (int argc, char **argv) long_options, NULL)) == -1)) { - if (optind == argc) + if (argc < optind) break; files[nfiles++] = argv[optind++]; } |