mirror of https://github.com/dirtbags/fluffy.git
slice: exit immediately if you will never output anything else
This commit is contained in:
parent
accf4d6476
commit
8c0e123636
3
slice.c
3
slice.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue