From e8da7ced76a7412b3aa09a9361dbdcf9aefe37d6 Mon Sep 17 00:00:00 2001 From: Ben Summers Date: Tue, 14 Feb 2006 09:19:40 +0000 Subject: Zero any unused fields in struct stat, to avoid spurious checksum mismatches that waste bandwidth and slow down backups (committing on behalf of chris) --- lib/win32/emu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp index 00d43122..b9cefba8 100644 --- a/lib/win32/emu.cpp +++ b/lib/win32/emu.cpp @@ -581,6 +581,8 @@ int emu_fstat(HANDLE hdir, struct stat * st) return -1; } + memset(st, 0, sizeof(*st)); + // This next example is how we get our INODE (equivalent) information conv.HighPart = fi.nFileIndexHigh; conv.LowPart = fi.nFileIndexLow; -- cgit v1.2.3