slice: exit immediately if you will never output anything else

This commit is contained in:
Neale Pickett 2018-06-12 22:19:41 +00:00
parent accf4d6476
commit 8c0e123636
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ main(int argc, char *argv[])
drop = !drop; drop = !drop;
argn += 1; argn += 1;
if (argn == argc) { if (argn == argc) {
if (drop) {
break;
}
next = ULONG_MAX; next = ULONG_MAX;
} else { } else {
next = strtoul(argv[argn], NULL, 0); next = strtoul(argv[argn], NULL, 0);