From be8234cd5991b395ed2d2a20b9e40bbcd021a70d 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.c b/log.c index 6f68f569..0f6f90cb 100644 --- a/log.c +++ b/log.c @@ -853,7 +853,7 @@ void log_delete(const char *fname, int mode) static struct { union file_extras ex[4]; /* just in case... */ struct file_struct file; - } x; + } x; /* Zero-initialized due to static declaration. */ int len = strlen(fname); const char *fmt; -- 2.34.1