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
0842efea
Commit
0842efea
authored
Mar 22, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix calls to memset() with arguments out of order. (Bug #9323)
parent
2a53e9d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
bdb/btree/bt_open.c
bdb/btree/bt_open.c
+1
-1
bdb/hash/hash_open.c
bdb/hash/hash_open.c
+1
-1
ndb/src/kernel/vm/VMSignal.cpp
ndb/src/kernel/vm/VMSignal.cpp
+2
-2
No files found.
bdb/btree/bt_open.c
View file @
0842efea
...
@@ -489,7 +489,7 @@ __bam_new_file(dbp, txn, fhp, name)
...
@@ -489,7 +489,7 @@ __bam_new_file(dbp, txn, fhp, name)
goto
err
;
goto
err
;
}
else
{
}
else
{
#ifdef DIAGNOSTIC
#ifdef DIAGNOSTIC
memset
(
buf
,
dbp
->
pgsize
,
0
);
memset
(
buf
,
0
,
dbp
->
pgsize
);
#endif
#endif
root
=
(
PAGE
*
)
buf
;
root
=
(
PAGE
*
)
buf
;
}
}
...
...
bdb/hash/hash_open.c
View file @
0842efea
...
@@ -409,7 +409,7 @@ __ham_new_file(dbp, txn, fhp, name)
...
@@ -409,7 +409,7 @@ __ham_new_file(dbp, txn, fhp, name)
goto
err
;
goto
err
;
}
else
{
}
else
{
#ifdef DIAGNOSTIC
#ifdef DIAGNOSTIC
memset
(
buf
,
dbp
->
pgsize
,
0
);
memset
(
buf
,
0
,
dbp
->
pgsize
);
#endif
#endif
page
=
(
PAGE
*
)
buf
;
page
=
(
PAGE
*
)
buf
;
}
}
...
...
ndb/src/kernel/vm/VMSignal.cpp
View file @
0842efea
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#include <string.h>
#include <string.h>
Signal
::
Signal
(){
Signal
::
Signal
(){
memset
(
&
header
,
sizeof
(
header
),
0
);
memset
(
&
header
,
0
,
sizeof
(
header
)
);
memset
(
theData
,
sizeof
(
theData
),
0
);
memset
(
theData
,
0
,
sizeof
(
theData
)
);
}
}
void
void
...
...
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