summaryrefslogtreecommitdiffstats
path: root/src/xregex.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-06 10:40:33 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-06 16:37:14 -0500
commit9f6f391358e3d8f66ebd750250479bebebe4d0d4 (patch)
treeb954d8cdb10e46ff68a39b6c829ab94161994f2a /src/xregex.c
parent2724dfbd17552f892a0d8b39b96cbe9e49d66fdb (diff)
downloadbfs-9f6f391358e3d8f66ebd750250479bebebe4d0d4.tar.xz
util: Use fewer BFS_*() wrappers for feature testing
Diffstat (limited to 'src/xregex.c')
-rw-r--r--src/xregex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xregex.c b/src/xregex.c
index 3c3cf35..4fa098d 100644
--- a/src/xregex.c
+++ b/src/xregex.c
@@ -188,7 +188,7 @@ int bfs_regcomp(struct bfs_regex **preg, const char *pattern, enum bfs_regex_typ
cflags |= REG_ICASE;
}
-#if BFS_HAS_FEATURE(memory_sanitizer, false)
+#if __has_feature(memory_sanitizer)
// https://github.com/google/sanitizers/issues/1496
memset(&regex->impl, 0, sizeof(regex->impl));
#endif