don't pass argc in getopt32, it's superfluous
[platform/upstream/busybox.git] / coreutils / sort.c
index 98c1bc3..311c774 100644 (file)
@@ -290,7 +290,7 @@ int sort_main(int argc, char **argv)
        /* -o and -t can be given at most once */
        opt_complementary = "o--o:t--t:" /* -t, -o: maximum one of each */
                        "k::"; /* -k takes list */
-       getopt32(argc, argv, OPT_STR, &str_ignored, &str_ignored, &str_o, &lst_k, &str_t);
+       getopt32(argv, OPT_STR, &str_ignored, &str_ignored, &str_o, &lst_k, &str_t);
 #if ENABLE_FEATURE_SORT_BIG
        if (option_mask32 & FLAG_o) outfile = xfopen(str_o, "w");
        if (option_mask32 & FLAG_t) {