diff options
author | Matt McCutchen <matt@mattmccutchen.net> | 2010-02-09 22:13:28 -0500 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2010-04-24 09:51:05 -0700 |
commit | be8234cd5991b395ed2d2a20b9e40bbcd021a70d (patch) | |
tree | 1bf9723070b485b70bee7f790071a643146d7a9f /log.c | |
parent | d0f2bbb83e0c9a1b4264eeadfc2d53fb5aafb657 (diff) | |
download | rsync-be8234cd5991b395ed2d2a20b9e40bbcd021a70d.tar.gz |
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.
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |