From: Matt McCutchen Date: Wed, 10 Feb 2010 03:13:28 +0000 (-0500) Subject: Point out that the file_struct in log_delete is zero-initialized because X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/c1c2c8ff6048202e9f682948b86772f98145610c?ds=inline Point out that the file_struct in log_delete is zero-initialized because it is static. It took me long enough to realize this that I think it is worth documenting. --- diff --git a/log.c b/log.c index f842e552..46e0a638 100644 --- a/log.c +++ b/log.c @@ -848,6 +848,7 @@ void maybe_log_item(struct file_struct *file, int iflags, int itemizing, void log_delete(const char *fname, int mode) { + /* Zero-initialized */ static struct { union file_extras ex[4]; /* just in case... */ struct file_struct file;