Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a59a7b2
)
Point out that the file_struct in log_delete is zero-initialized because
author
Matt McCutchen
<matt@mattmccutchen.net>
Wed, 10 Feb 2010 03:13:28 +0000
(22:13 -0500)
committer
Matt McCutchen
<matt@mattmccutchen.net>
Sat, 25 Jun 2011 22:28:04 +0000
(18:28 -0400)
it is static.
It took me long enough to realize this that I think it is worth
documenting.
log.c
patch
|
blob
|
blame
|
history
diff --git
a/log.c
b/log.c
index
f842e55
..
46e0a63
100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-848,6
+848,7
@@
void maybe_log_item(struct file_struct *file, int iflags, int itemizing,
void log_delete(const char *fname, int mode)
{
void log_delete(const char *fname, int mode)
{
+ /* Zero-initialized */
static struct {
union file_extras ex[4]; /* just in case... */
struct file_struct file;
static struct {
union file_extras ex[4]; /* just in case... */
struct file_struct file;