about summary refs log tree commit diff
path: root/seq.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-18 18:33:49 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-18 18:33:49 +0200
commit9fc77fc4b811f258bda51bab961a93993aecf1c4 (patch)
treee7255bc0823b5967c3d0e58a9fa897ab9f198ba9 /seq.c
parenta686b545941bd62cc745f5d91dd5ce8c527f755e (diff)
downloadmblaze-9fc77fc4b811f258bda51bab961a93993aecf1c4.tar.gz
mblaze-9fc77fc4b811f258bda51bab961a93993aecf1c4.tar.xz
mblaze-9fc77fc4b811f258bda51bab961a93993aecf1c4.zip
seq: blaze822_loop: count file arguments too
Diffstat (limited to 'seq.c')
-rw-r--r--seq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/seq.c b/seq.c
index 75cc8d2..2402875 100644
--- a/seq.c
+++ b/seq.c
@@ -317,6 +317,7 @@ blaze822_loop(int argc, char *argv[], void (*cb)(char *))
 	for (i = 0; i < argc; i++) {
 		if (strchr(argv[i], '/')) {  // a file name
 			cb(argv[i]);
+			j++;
 		} else {
 			while ((line = blaze822_seq_next(map, argv[i], &iter))) {
 				cb(line);