seq: blaze822_loop: count file arguments too

This commit is contained in:
Christian Neukirchen 2016-07-18 18:33:49 +02:00
parent a686b54594
commit 9fc77fc4b8

1
seq.c
View File

@ -317,6 +317,7 @@ blaze822_loop(int argc, char *argv[], void (*cb)(char *))
for (i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
if (strchr(argv[i], '/')) { // a file name if (strchr(argv[i], '/')) { // a file name
cb(argv[i]); cb(argv[i]);
j++;
} else { } else {
while ((line = blaze822_seq_next(map, argv[i], &iter))) { while ((line = blaze822_seq_next(map, argv[i], &iter))) {
cb(line); cb(line);