From c1c2c8ff6048202e9f682948b86772f98145610c Mon Sep 17 00:00:00 2001 From: Matt McCutchen Date: Tue, 9 Feb 2010 22:13:28 -0500 Subject: [PATCH] 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. --- log.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.34.1