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.
This commit is contained in:
Matt McCutchen
2010-02-09 22:13:28 -05:00
committed by Wayne Davison
parent d0f2bbb83e
commit be8234cd59

2
log.c
View File

@@ -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;