mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
buf_block_init(): Reset magic_n, buf_fix_count and io_fix to avoid
testing uninitialized variables. (Bug #17405)
This commit is contained in:
parent
aa3995cb92
commit
ddf4a2a86e
1 changed files with 5 additions and 0 deletions
|
@ -464,12 +464,17 @@ buf_block_init(
|
|||
byte* frame) /* in: pointer to buffer frame, or NULL if in
|
||||
the case of AWE there is no frame */
|
||||
{
|
||||
block->magic_n = 0;
|
||||
|
||||
block->state = BUF_BLOCK_NOT_USED;
|
||||
|
||||
block->frame = frame;
|
||||
|
||||
block->awe_info = NULL;
|
||||
|
||||
block->buf_fix_count = 0;
|
||||
block->io_fix = 0;
|
||||
|
||||
block->modify_clock = ut_dulint_zero;
|
||||
|
||||
block->file_page_was_freed = FALSE;
|
||||
|
|
Loading…
Add table
Reference in a new issue