Commit be8234cd authored by Matt McCutchen's avatar Matt McCutchen Committed by Wayne Davison

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.
parent d0f2bbb8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment