diff --git a/msort.c b/msort.c index e1bd70d..1526a05 100644 --- a/msort.c +++ b/msort.c @@ -298,12 +298,10 @@ main(int argc, char *argv[]) if (!mails) exit(-1); - if (argc == optind && isatty(0)) { - char *all[] = { ":" }; - blaze822_loop(1, all, add); - } else { + if (argc == optind && isatty(0)) + blaze822_loop1(":", add); + else blaze822_loop(argc-optind, argv+optind, add); - } qsort(mails, idx, sizeof (struct mail), sortorder);