diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-05-18 13:27:04 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-05-18 16:30:25 -0400 |
commit | 88581b9d505342e20d03cc4c6557d30c3f66f0f5 (patch) | |
tree | 1b777eee727acd3ca620c6287352e8e29e72045c /src/color.c | |
parent | ded8567215afa498295660d123159f26210e066a (diff) | |
download | bfs-88581b9d505342e20d03cc4c6557d30c3f66f0f5.tar.xz |
Use bfs_bug("...") over assert(!"...")
Diffstat (limited to 'src/color.c')
-rw-r--r-- | src/color.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/color.c b/src/color.c index eeadf98..43ea9a4 100644 --- a/src/color.c +++ b/src/color.c @@ -5,6 +5,7 @@ #include "bfstd.h" #include "bftw.h" #include "config.h" +#include "diag.h" #include "dir.h" #include "dstring.h" #include "expr.h" @@ -1085,7 +1086,7 @@ static int cvbuff(CFILE *cfile, const char *format, va_list args) { return 0; invalid: - assert(!"Invalid format string"); + bfs_bug("Invalid format string"); errno = EINVAL; return -1; } |