summaryrefslogtreecommitdiffstats
path: root/ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctx.c')
-rw-r--r--ctx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ctx.c b/ctx.c
index 7f4fa03..236094c 100644
--- a/ctx.c
+++ b/ctx.c
@@ -189,7 +189,11 @@ CFILE *bfs_ctx_dedup(struct bfs_ctx *ctx, CFILE *cfile, const char *path) {
ctx_file->cfile = cfile;
ctx_file->path = path;
- ++ctx->nfiles;
+
+ if (cfile != ctx->cout && cfile != ctx->cerr) {
+ ++ctx->nfiles;
+ }
+
return cfile;
}