summaryrefslogtreecommitdiffstats
path: root/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'stat.c')
-rw-r--r--stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stat.c b/stat.c
index d1132ad..6042ffb 100644
--- a/stat.c
+++ b/stat.c
@@ -172,9 +172,9 @@ static int bfs_stat_impl(int at_fd, const char *at_path, int at_flags, enum bfs_
* Wrapper for the statx() system call, which had no glibc wrapper prior to 2.28.
*/
static int bfs_statx(int at_fd, const char *at_path, int at_flags, unsigned int mask, struct statx *buf) {
+#if BFS_HAS_FEATURE(memory_sanitizer, false)
// -fsanitize=memory doesn't know about statx(), so tell it the memory
// got initialized
-#if BFS_HAS_FEATURE(memory_sanitizer, false)
memset(buf, 0, sizeof(*buf));
#endif