Add a work-around for memsan

Fixes #11735.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-02-21 14:05:10 +01:00
committed by Lennart Poettering
parent 528a74a1ad
commit 08995a6b47
+6 -1
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;