diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2015-10-22 10:57:15 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2015-10-22 10:57:15 +0000 |
commit | a7bc18929dee744ce24f616da36b85900da20b58 (patch) | |
tree | b34f27ee9b2eac78e253a0ad1fef3191067ffe1a /usr.bin/sort | |
parent | c8b84e533096d8b1e9af822d5b9c904e0eb7d21e (diff) | |
download | src-a7bc18929dee744ce24f616da36b85900da20b58.tar.gz src-a7bc18929dee744ce24f616da36b85900da20b58.zip |
Notes
Diffstat (limited to 'usr.bin/sort')
-rw-r--r-- | usr.bin/sort/sort.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/sort/sort.c b/usr.bin/sort/sort.c index 43ae43ce4650..17f316b8ca36 100644 --- a/usr.bin/sort/sort.c +++ b/usr.bin/sort/sort.c @@ -1168,6 +1168,11 @@ main(int argc, char **argv) argc -= optind; argv += optind; + if (argv_from_file0) { + argc = argc_from_file0; + argv = argv_from_file0; + } + #ifndef WITHOUT_NLS catalog = catopen("sort", NL_CAT_LOCALE); #endif @@ -1205,11 +1210,6 @@ main(int argc, char **argv) ks->sm.func = get_sort_func(&(ks->sm)); } - if (argv_from_file0) { - argc = argc_from_file0; - argv = argv_from_file0; - } - if (debug_sort) { printf("Memory to be used for sorting: %llu\n",available_free_memory); #if defined(SORT_THREADS) |