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
(from parent 1:
4c4266d
)
Fix for memset bug found by buildfarm.
author
Wayne Davison
<wayned@samba.org>
Mon, 2 Feb 2004 22:35:07 +0000
(22:35 +0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 2 Feb 2004 22:35:07 +0000
(22:35 +0000)
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
f00ecfc
..
60a0e8d
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-80,7
+80,6
@@
void init_flist(void)
/* Figure out how big the file_struct is without trailing padding */
min_file_struct_len = ((char*)&f.flags - (char*)&f) + sizeof f.flags;
- min_file_struct_len = sizeof f; /* XXX test for build-farm */
}
@@
-1331,7
+1330,7
@@
void free_file(struct file_struct *file, int free_the_struct)
if (free_the_struct)
free(file);
else
- memset(file, 0,
sizeof file[0]
);
+ memset(file, 0,
min_file_struct_len
);
}