Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
96eeda03
Commit
96eeda03
authored
Feb 02, 2004
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for memset bug found by buildfarm.
parent
4c4266d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
flist.c
flist.c
+1
-2
No files found.
flist.c
View file @
96eeda03
...
@@ -80,7 +80,6 @@ void init_flist(void)
...
@@ -80,7 +80,6 @@ void init_flist(void)
/* Figure out how big the file_struct is without trailing padding */
/* 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
=
((
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)
...
@@ -1331,7 +1330,7 @@ void free_file(struct file_struct *file, int free_the_struct)
if
(
free_the_struct
)
if
(
free_the_struct
)
free
(
file
);
free
(
file
);
else
else
memset
(
file
,
0
,
sizeof
file
[
0
]
);
memset
(
file
,
0
,
min_file_struct_len
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment