[Box Backup-dev] COMMIT r460 - box/trunk/lib/win32

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Tue Feb 14 09:19:43 GMT 2006


Author: ben
Date: 2006-02-14 09:19:40 +0000 (Tue, 14 Feb 2006)
New Revision: 460

Modified:
   box/trunk/lib/win32/emu.cpp
Log:
Zero any unused fields in struct stat, to avoid spurious checksum mismatches that waste bandwidth and slow down backups (committing on behalf of chris)

Modified: box/trunk/lib/win32/emu.cpp
===================================================================
--- box/trunk/lib/win32/emu.cpp	2006-02-13 23:47:32 UTC (rev 459)
+++ box/trunk/lib/win32/emu.cpp	2006-02-14 09:19:40 UTC (rev 460)
@@ -581,6 +581,8 @@
 		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;




More information about the Boxbackup-dev mailing list