Add a work-around for memsan

Fixes #11735.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-02-21 07:58:24 +01:00 committed by Lennart Poettering
parent 528a74a1ad
commit 08995a6b47
1 changed files with 6 additions and 1 deletions

View File

@ -140,7 +140,12 @@ static int parse_crtime(le64_t le, usec_t *usec) {
}
int fd_getcrtime_at(int dirfd, const char *name, usec_t *ret, int flags) {
struct_statx sx;
struct_statx sx
#if HAS_FEATURE_MEMORY_SANITIZER
= {}
# warning "Explicitly initializing struct statx, to work around msan limitation. Please remove as soon as msan has been updated to not require this."
#endif
;
usec_t a, b;
le64_t le;
size_t n;