diff options
author | Ben Summers <ben@fluffy.co.uk> | 2006-02-14 09:19:40 +0000 |
---|---|---|
committer | Ben Summers <ben@fluffy.co.uk> | 2006-02-14 09:19:40 +0000 |
commit | e8da7ced76a7412b3aa09a9361dbdcf9aefe37d6 (patch) | |
tree | 4196c1eb718f64f0dd76941b570ac56782f39508 /lib | |
parent | 1ecc0c9056fdec525207acb21db88260f6622efa (diff) |
Zero any unused fields in struct stat, to avoid spurious checksum mismatches that waste bandwidth and slow down backups (committing on behalf of chris)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/win32/emu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |