mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip: mem_init_buf(), mem_erase_buf(): Add UNIV_MEM_ASSERT_W().
This commit is contained in:
parent
4867227690
commit
55e009428e
1 changed files with 4 additions and 0 deletions
|
@ -223,6 +223,8 @@ mem_init_buf(
|
|||
{
|
||||
byte* ptr;
|
||||
|
||||
UNIV_MEM_ASSERT_W(buf, n);
|
||||
|
||||
for (ptr = buf; ptr < buf + n; ptr++) {
|
||||
|
||||
if (ut_rnd_gen_ibool()) {
|
||||
|
@ -247,6 +249,8 @@ mem_erase_buf(
|
|||
{
|
||||
byte* ptr;
|
||||
|
||||
UNIV_MEM_ASSERT_W(buf, n);
|
||||
|
||||
for (ptr = buf; ptr < buf + n; ptr++) {
|
||||
if (ut_rnd_gen_ibool()) {
|
||||
*ptr = 0xDE;
|
||||
|
|
Loading…
Add table
Reference in a new issue