summaryrefslogtreecommitdiffstats
path: root/ctx.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-10-04 13:22:23 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-10-04 13:22:23 -0400
commitb3312002a5d96cd486156a711d3c1861c150b7c6 (patch)
treeadf8ce0d8d3984bb54c7b82af89f9aa3d90d294a /ctx.c
parentb0282202ce8b361110ef32b18e7159edc604929d (diff)
downloadbfs-b3312002a5d96cd486156a711d3c1861c150b7c6.tar.xz
parse: Fail if -color is passed and the colors couldn't be parsed
Diffstat (limited to 'ctx.c')
-rw-r--r--ctx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctx.c b/ctx.c
index cf47bc4..6146b3c 100644
--- a/ctx.c
+++ b/ctx.c
@@ -48,6 +48,7 @@ struct bfs_ctx *bfs_ctx_new(void) {
ctx->xargs_safe = false;
ctx->colors = NULL;
+ ctx->colors_error = 0;
ctx->cout = NULL;
ctx->cerr = NULL;