aboutsummaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
authorMatt McCutchen <matt@mattmccutchen.net>2010-02-09 22:13:28 -0500
committerWayne Davison <wayned@samba.org>2010-04-24 09:51:05 -0700
commitbe8234cd5991b395ed2d2a20b9e40bbcd021a70d (patch)
tree1bf9723070b485b70bee7f790071a643146d7a9f /log.c
parentd0f2bbb83e0c9a1b4264eeadfc2d53fb5aafb657 (diff)
downloadandroid_external_rsync-be8234cd5991b395ed2d2a20b9e40bbcd021a70d.tar.gz
android_external_rsync-be8234cd5991b395ed2d2a20b9e40bbcd021a70d.tar.bz2
android_external_rsync-be8234cd5991b395ed2d2a20b9e40bbcd021a70d.zip
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.c2
1 files changed, 1 insertions, 1 deletions
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;