Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
14384b84
Commit
14384b84
authored
Dec 27, 2005
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoiding conditional jump on uninitialized variable (BUG#14904).
parent
d5d6b514
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
mysys/my_copy.c
mysys/my_copy.c
+1
-2
No files found.
mysys/my_copy.c
View file @
14384b84
...
...
@@ -53,7 +53,7 @@ struct utimbuf {
int
my_copy
(
const
char
*
from
,
const
char
*
to
,
myf
MyFlags
)
{
uint
Count
;
my_bool
new_file_stat
;
/* 1 if we could stat "to" */
my_bool
new_file_stat
=
0
;
/* 1 if we could stat "to" */
int
create_flag
;
File
from_file
,
to_file
;
char
buff
[
IO_SIZE
];
...
...
@@ -62,7 +62,6 @@ int my_copy(const char *from, const char *to, myf MyFlags)
DBUG_PRINT
(
"my"
,(
"from %s to %s MyFlags %d"
,
from
,
to
,
MyFlags
));
from_file
=
to_file
=
-
1
;
LINT_INIT
(
new_file_stat
);
DBUG_ASSERT
(
!
(
MyFlags
&
(
MY_FNABP
|
MY_NABP
)));
/* for my_read/my_write */
if
(
MyFlags
&
MY_HOLD_ORIGINAL_MODES
)
/* Copy stat if possible */
new_file_stat
=
test
(
my_stat
((
char
*
)
to
,
&
new_stat_buff
,
MYF
(
0
)));
...
...
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