diff --git a/config/kernel-inode-times.m4 b/config/kernel-inode-times.m4 index 8a79c299e1..9c016c7900 100644 --- a/config/kernel-inode-times.m4 +++ b/config/kernel-inode-times.m4 @@ -10,6 +10,7 @@ AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_TIMES], [ struct timespec64 ts; struct inode ip; + memset(&ts, 0, sizeof(ts)); ts = timestamp_truncate(ts, &ip); ])